i18n

i18n is a cursor rule for Cursor from ddebixx/frontend-template. It costs 0 tokens per session (342 once invoked), scanned A, original, MIT.

A set of rules for keeping user-visible text in translation files or shared constants instead of placing it directly in interface code. It supports multiple languages through the project’s chosen translation tools.

In plain words
What is it for?
Use it when adding labels, messages, button text, accessibility text, dates, numbers, language switching, or other displayed copy.
Why use it?
It makes text easier to translate, update, reuse, and keep consistent across the application.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding labels, messages, button text, accessibility text, dates, numbers, language switching, or other displayed copy.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/ddebixx/frontend-template/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/ddebixx/frontend-template

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/ddebixx/frontend-template/i18n/github.svg)](https://agentmods.dev/rules/ddebixx/frontend-template/i18n)
Your own site
<a href="https://agentmods.dev/rules/ddebixx/frontend-template/i18n"><img src="https://agentmods.dev/badge/rules/ddebixx/frontend-template/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/ddebixx/frontend-template/i18n"><img src="https://agentmods.dev/badge/rules/ddebixx/frontend-template/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 342 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.00342
Opus 5.5 $0.00000 $0.00137
Sonnet 5.5 $0.00000 $0.00068
Haiku 4.5 $0.00000 $0.00034

Measured 1mo ago against content hash 975ca2a30955, 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 1mo 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.

.cursor/rules/frontend/i18n.mdc · 30 lines

What it actually says

Copy and internationalization

No inline static display strings

Do not put user-visible or accessibility string literals in components, pages, or features.

Move copy to either:

  1. Locale catalogs — src/messages/*.json via t / getTranslations (multi-locale)
  2. Constants — *.constants.ts or src/constants/ (keeps UI files clear)

The project chooses catalogs, constants, or a mix. Prefer catalogs when locales matter. Document a team default in the README if needed.

Literals are fine for class names, URLs, analytics ids, enums, and test fixtures.

Stack (templates)

  • Next.js → next-intl (src/i18n/request.ts + setLocale cookie)
  • Vite → i18next + react-i18next (src/i18n/setup.ts)
  • Shared switcher: components/shared/LocaleSwitcher
  • Stable keys; Intl or the library for dates, numbers, and plurals; set document lang

Details: docs/frontend/tools/I18N.md

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. 1mo ago Changed 975ca2a30955
  2. 3mo ago First seen · 30 lines · 0 tokens per session scan A c3324116785f

Subscribe to this mod's changes

i18n is a cursor rule published in the GitHub repository ddebixx/frontend-template (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 342 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-08-31.

Related

i18n compared with cursor rules from other repositories

i18n next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
i18nddebixx/frontend-templateCursor rule51mo agoMITA0Cursor
internationalizationdtyq/magicCursor rule5.1k1mo agononeA3,524Cursor
cmd-moodle-mustache-lintSaadRahman01/claude-moodle-devCursor rule435mo agoMITA32Cursor
chinese-languagedoccker/cc-use-expCursor rule1.1k3mo agononeA385Cursor
rtl-right-to-left-i18n-cursorrules-prompt-fileXD3an/awesome-ai-coding-all-in-oneCursor rule143d agononeA608Cursor
uninettuno-monografiariccardodicurti/template-latex-tesi-uninettunoCursor rule76mo agoMITA645Cursor
reportMineru98/mysql-mcp-serverCursor rule271y agoMITA8Cursor