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.
git clone --depth 1 https://github.com/wintermeyer/cursor-rails-rulesWrote 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.
[](https://agentmods.dev/rules/wintermeyer/cursor-rails-rules/i18n)<a href="https://agentmods.dev/rules/wintermeyer/cursor-rails-rules/i18n"><img src="https://agentmods.dev/badge/rules/wintermeyer/cursor-rails-rules/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.
<a href="https://agentmods.dev/rules/wintermeyer/cursor-rails-rules/i18n"><img src="https://agentmods.dev/badge/rules/wintermeyer/cursor-rails-rules/i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00804 |
| Opus 5.5 | $0.00000 | $0.00322 |
| Sonnet 5.5 | $0.00000 | $0.00161 |
| Haiku 4.5 | $0.00000 | $0.00080 |
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 2mo 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Base I18n Standards
We always assume that the application supports multiple languages and locales. By default we go with English as the primary language and German as the secondary language.
Check if the 'rails-i18n' gem is installed. If not add it to the Gemfile:
gem 'rails-i18n', '~> 8.0.0'
and run a bundle install.
Configuration
- Setup
# config/application.rb
config.i18n.default_locale = :en
config.i18n.available_locales = [:en, :de]
config.i18n.fallbacks = true
- Directory Structure
config/locales/
├── en/
│ ├── models/
│ ├── views/
│ └── controllers/
└── de/
├── models/
├── views/
└── controllers/
Key Structure
- Namespace Hierarchy
en:
models: # Model-specific translations
views: # View-specific translations
controllers: # Controller-specific messages
helpers: # Form helpers and labels
common: # Shared translations
- Key Naming
- Use lowercase
- Use dots for nesting
- Use underscores for words
- Keep keys descriptive
- Follow Ruby naming conventions
Implementation
- In Views
<%= t('.title') %> # Lazy lookup
<%= t('views.users.index.title') %> # Full key
<%= t('.welcome', name: @user.name) %> # With interpolation
- In Controllers
flash[:notice] = t('.success')
redirect_back_or_to root_path, notice: t('.created')
- In Models
validates :status, inclusion: { in: %w[pending active],
message: ->(object, data) { I18n.t("models.#{object.class.name.downcase}.errors.invalid_status") } }
- In Mailers
mail(
to: @user.email,
subject: t('.welcome_subject', name: @user.name)
)
Best Practices
- Key Organization
- Group by feature/module
- Use consistent nesting levels
- Keep keys short but meaningful
- Document non-obvious keys
- Translation Management
- Use YAML for static content
- Use Ruby for dynamic content
- Keep translations DRY
- Regular sync with translators
- Performance
- Use lazy lookup when possible
- Cache common translations
- Avoid deep nesting
- Preload translations in production
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.
- 2mo ago First seen · 155 lines · 0 tokens per session scan A 4d5dd939f98f
i18n is a cursor rule published in the GitHub repository wintermeyer/cursor-rails-rules (37 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 804 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-30.
Other cursor rules, from other repositories
internationalization
A set of rules for internationalization, the practice of adapting an application for multiple languages and regions. It covers file structure, translation namespaces, and using translations in components.
cmd-moodle-mustache-lint
Lint Mustache templates for accessibility, security, hard-coded strings, and Moodle template conventions. (invoke by typing: @moodle-mustache-lint).
chinese-language
A language rule that requires replies, comments, and commit messages to use Simplified Chinese unless another language is requested.
rtl-right-to-left-i18n-cursorrules-prompt-file
Cursor rule "rtl-right-to-left-i18n-cursorrules-prompt-file" from XD3an/awesome-ai-coding-all-in-one, covering rtl (right-to-left) development rules, core rules, 1. logical css properties, 2. tailwind css logical classes and 3. react native logical properties.
uninettuno-monografia
Regole UNINETTUNO per tesi TRIENNALE in italiano, con termini tecnici inglesi ammessi.
report
A set of rules for generating HTML dashboards that present data and analysis in Korean. It defines the required page structure, visual libraries, fonts, and report content.