i18n

i18n is a cursor rule for Cursor from seite-sh/seite. It costs 0 tokens per session (850 once invoked), scanned A, original, MIT.

Rules for adding multiple language versions to a static site, including translated files, language-specific URLs, navigation links, feeds, and sitemaps.

In plain words
What is it for?
Use them to configure languages such as Spanish, create translated Markdown pages, and add language-aware links in templates and data files.
Why use it?
They define how translations are connected and prevent links and generated site files from pointing to the wrong language.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them to configure languages such as Spanish, create translated Markdown pages, and add language-aware links in templates and data files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/seite-sh/seite/i18n
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/seite-sh/seite

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for i18n

README.md
[![agentmods](https://agentmods.dev/badge/rules/seite-sh/seite/i18n/github.svg)](https://agentmods.dev/rules/seite-sh/seite/i18n)
Your own site
<a href="https://agentmods.dev/rules/seite-sh/seite/i18n"><img src="https://agentmods.dev/badge/rules/seite-sh/seite/i18n/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for i18n

Your own site · 80×15
<a href="https://agentmods.dev/rules/seite-sh/seite/i18n"><img src="https://agentmods.dev/badge/rules/seite-sh/seite/i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00850
Opus 5.5 $0.00000 $0.00340
Sonnet 5.5 $0.00000 $0.00170
Haiku 4.5 $0.00000 $0.00085

Measured 17d ago against content hash ed44f6f95249, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

seite-sh/.cursor/rules/i18n.mdc · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Multi-language Support

Add translations by configuring languages in seite.toml and creating translated content files:

# seite.toml
[languages.es]
title = "Mi Sitio"              # optional title override
description = "Un sitio web"     # optional description override

Then create translated files with a language suffix before .md:

content/pages/about.md       # English (default) → /about
content/pages/about.es.md    # Spanish            → /es/about
  • Default language content lives at the root URL (/about)
  • Other languages get a /{lang}/ prefix (/es/about)
  • Items with the same slug across languages are automatically linked as translations
  • Per-language RSS feeds, sitemaps with hreflang alternates, and discovery files are generated automatically
  • Without [languages.*] config, the site is single-language and works as normal

i18n Template Helpers

Use {{ lang_prefix }} to prefix internal links for the current language (empty for default, "/es" for Spanish, etc.):

<a href="{{ lang_prefix }}/about">About</a>

In data/nav.yaml and data/footer.yaml, mark external links with external: true:

- title: Blog
  url: /posts
- title: GitHub
  url: https://github.com/user/repo
  external: true

All bundled themes automatically apply lang_prefix to internal data file links and open external links in new tabs.

Translating UI Strings

All UI text in themes uses the {{ t.key }} object (search placeholder, pagination, 404 text, etc.). Override defaults by creating data/i18n/{lang}.yaml:

# data/i18n/es.yaml
search_placeholder: "Buscar…"
skip_to_content: "Ir al contenido principal"
no_results: "Sin resultados"
newer: "Más recientes"
older: "Más antiguos"

Available keys: search_placeholder, skip_to_content, no_results, newer, older, page_n_of_total, search_label, min_read, contents, tags, all_tags, tagged, changelog, roadmap, not_found_title, not_found_message, go_home, in_progress, planned, done, other, trust_center, trust_hero_subtitle, certifications_compliance, active, learn_more, auditor, scope, issued, expires, subprocessors, vendor, purpose, location, dpa, yes, no, faq.

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago First seen · 89 lines · 0 tokens per session scan A ed44f6f95249

Subscribe to this mod's changes

i18n is a cursor rule published in the GitHub repository seite-sh/seite (25 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 850 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.