spring-boot-i18n

spring-boot-i18n is a cursor rule for Cursor from lsampaioweb/ai-instructions. It costs 0 tokens per session (772 once invoked), scanned A, original, MIT.

A set of rules for internationalization, meaning support for multiple languages and regional settings. It organizes translated messages, validation text, API text, documentation, and log messages in locale-specific files.

In plain words
What is it for?
Use it when adding translated errors, validation messages, API responses, documentation text, or localized log messages.
Why use it?
It keeps user-facing text out of application code and makes translations consistent. Stable message keys also let wording change without changing program behavior.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding translated errors, validation messages, API responses, documentation text, or localized log messages.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lsampaioweb/ai-instructions/spring-boot-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/lsampaioweb/ai-instructions

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 spring-boot-i18n

README.md
[![agentmods](https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-i18n/github.svg)](https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-i18n)
Your own site
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-i18n"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-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 spring-boot-i18n

Your own site · 80×15
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-i18n"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-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 772 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.00772
Opus 5.5 $0.00000 $0.00309
Sonnet 5.5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

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

Security

Grade A, and why

spring-boot-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/spring-boot-i18n.mdc · 79 lines

How it starts

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

Spring Boot i18n Contract

These rules apply to application modules that expose user-facing or log-facing message text. Projects must meet the full contract once i18n is in use.

Message bundles

  • Store bundles under src/main/resources/i18n/.
  • Ship at least:
    • messages.properties as the English default bundle
    • messages_pt_BR.properties for Brazilian Portuguese
  • Every key present in one locale file must exist in every other locale file.
  • Placeholder arity must match across locales for the same key (for example {0} and {1} counts must be identical).
  • Never hardcode user-facing API, UI, validation, or error text in Java. Resolve it through MessageSource (or a thin helper that wraps it) and a message key.
  • Developer-facing log text uses the dedicated logging message helper defined by the logging contract. Resolve request-scoped log messages with the request locale and messages without a request locale with the configured default locale.

Spring messages configuration

Declare all four settings in application.yml whenever the project uses message bundles:

spring:
  messages:
    basename: "i18n/messages"
    encoding: "UTF-8"
    default-locale: "en"
    fallback-to-system-locale: true
  • Quote string values consistently (configuration contract).
  • Do not let the JVM/OS locale become the fallback for missing translations.

Locale resolution

  • Supported locales for real projects are English and pt-BR.
  • Default locale is English.
  • REST/API applications resolve locale from the Accept-Language header. A stock AcceptHeaderLocaleResolver configured with that default and supported list is enough.
  • MVC/page applications may also honor an explicit lang query parameter when the UI needs a language switcher. Do not use the JVM default locale as a fallback.
  • Keep user-facing resolution separate from log-message resolution by using the dedicated logging helper. Both use the applicable locale: request locale for request-scoped messages and configured default locale for messages without a request.

Read the full file on GitHub · 79 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. 1mo ago Changed eef6724c099d
  2. 1mo ago Changed · +30 lines f2cd9dac75de
  3. 3mo ago First seen · 49 lines · 0 tokens per session scan A bc7a5296df6e

Subscribe to this mod's changes

spring-boot-i18n is a cursor rule published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 772 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

spring-boot-i18n compared with cursor rules from other repositories

spring-boot-i18n next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spring-boot-i18nlsampaioweb/ai-instructionsCursor rule111d 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 rule144d agononeA608Cursor
uninettuno-monografiariccardodicurti/template-latex-tesi-uninettunoCursor rule76mo agoMITA645Cursor
reportMineru98/mysql-mcp-serverCursor rule271y agoMITA8Cursor