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.
npx agentmods add rules/thematters/matters-web/internationalizationgit clone --depth 1 https://github.com/thematters/matters-webWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00023 | $0.00581 |
| Opus 5 | $0.00012 | $0.00291 |
| Sonnet 5 | $0.00005 | $0.00116 |
| Haiku 4.5 | $0.00002 | $0.00058 |
Grade A, and why
internationalization 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Internationalization (i18n)
Matters Web uses react-intl (FormatJS) for internationalization.
i18n Structure
lang/: Contains language filescompiled-lang/: Contains compiled language files used at runtime- Language strings are extracted from components and pages using formatjs
Translation Management
- The application uses a set of scripts to manage translations:
npm run i18n:extract: Extracts messages from the codebase tolang/npm run i18n:generate: Normalize language files tolang/npm run i18n:compile: Compiles language files tocompiled-lang/for use in the applicationnpm run i18n: Runs all i18n commands
Usage in Components
Components use the FormattedMessage component or the useIntl hook to access translations:
// Using FormattedMessage
<FormattedMessage
defaultMessage="Archived"
id="a/YQ1Z"
description="src/components/ArticleDigest/DropdownActions/ArchiveArticle/Dialog.tsx"
/>
// Using useIntl
const intl = useIntl()
const message = intl.formatMessage({
defaultMessage: 'Archived'
id="a/YQ1Z"
description="src/components/ArticleDigest/DropdownActions/ArchiveArticle/Dialog.tsx"
})
The id is an automatically generated hash that uniquely identifies each translatable message. The description field contains the relative path of the component file, which helps prevent ID collisions when the same defaultMessage appears in multiple components. This enables accurate message tracking and context-specific translations throughout the application.
Translation Workflow
- Add copy with
<FormattedMessage>orintl.formatMessagein your component - Run
npm run i18nto generate language files - Add corresponding translations to
lang/zh-Hans.jsonandlang/zh-Hant.json - Run
npm run i18nto compile the language files
Language Files
The main language files:
- lang/default.json: Default language strings
- lang/en.json: English translations
- lang/zh-Hant.json: Traditional Chinese translations
- lang/zh-Hans.json: Simplified Chinese translations
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.
- 2d ago First seen · 66 lines · 23 tokens per session scan A 2a0ad7139332
internationalization is a cursor rule published in the GitHub repository thematters/matters-web (86 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 581 once invoked, about $0.0001 per session on Opus 5. 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-30.
Other cursor rules, from other repositories
internationalization
Cursor rule "internationalization" from dtyq/magic, covering internationalization (i18n) rules, 国际化基本规范, 1. 文件结构, 2. 命名空间规范 and 3. 组件中使用国际化.
test-plan
Plan Katalon True Platform/TestOps testing for a release, sprint, or feature. Use when you need to translate quality goals into scope, prioritize testing by requirement coverage and risk, decide what to test first, or build the executable plan structure (folders, suites, and sprint/release association) that stands in…
wings
Authoring apps with the WINGS framework (Go compiled to WASM web components).
cmd-moodle-mustache-lint
Lint Mustache templates for accessibility, security, hard-coded strings, and Moodle template conventions. (invoke by typing: @moodle-mustache-lint).
project-status
PriceGrab shipped state and product backlog (read first).
architecture
Architectural and cross-package changes — dependency direction, editor/runtime boundaries, scene schema, persistence, renderer packages. Use when changing package boundaries, serialized formats, or multiple layers. Do not apply to localized UI, styling, or test-only edits.