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/BetterTyped/hype-stackWrote 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/bettertyped/hype-stack/i18n-and-generated-code)<a href="https://agentmods.dev/rules/bettertyped/hype-stack/i18n-and-generated-code"><img src="https://agentmods.dev/badge/rules/bettertyped/hype-stack/i18n-and-generated-code/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/bettertyped/hype-stack/i18n-and-generated-code"><img src="https://agentmods.dev/badge/rules/bettertyped/hype-stack/i18n-and-generated-code.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.00378 |
| Opus 5.5 | $0.00000 | $0.00151 |
| Sonnet 5.5 | $0.00000 | $0.00076 |
| Haiku 4.5 | $0.00000 | $0.00038 |
Grade A, and why
i18n-and-generated-code 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.
What it actually says
i18n (Paraglide) and Generated Code
Never hardcode user-facing strings
Every app — backend included — translates user-facing text with Paraglide. Backend responses are locale-aware via paraglideMiddleware (locale cookie → Accept-Language → base locale), so m.*() calls in handlers resolve per request.
- Add new strings to the app's
messages/en.json(each app has its ownproject.inlang+messages/). - Run
pnpm generate(or the app'sgeneratescript) to compile messages intosrc/paraglide/. - Use messages via the compiled module:
import { m } from "@/paraglide/messages.js";
m.app_title();
- This covers UI labels, error messages returned to clients, email copy, and validation messages. Log messages and internal errors stay in English.
- Message keys are snake_case and named by meaning (
invitation_expired), not by location (login_page_error_2).
Generated code is read-only
Never hand-edit generated output — fix the source and regenerate:
src/paraglide/— generated byparaglide-js compilefrommessages/*.json.routeTree.gen.ts— generated by TanStack Router.- The Prisma client — generated by
prisma generatefromschema.prisma.
If a type error points into a generated file, the fix is in the source of truth (messages JSON, route files, Prisma schema) followed by pnpm generate — never in the generated file itself.
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.
- 1mo ago First seen · 35 lines · 0 tokens per session scan A 484c503cbebf
i18n-and-generated-code is a cursor rule published in the GitHub repository BetterTyped/hype-stack (12 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 378 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.
Other cursor rules, from other repositories
internationalization
Useful for internationalization (i18n) when you use and intl.formatMessage.
app-router-setup
Getting started with your Sitecore Content SDK Next.js App Router project.
i18n-mandatory
All user-visible UI text uses t('namespace:section.key') from react-i18next.
i18n
Internationalization with react-i18next.
tanstack-start-guide
TanStack Start best practices emphasizing client-first architecture, type safety, and modern React patterns.
new-component
Workflow for creating new React components.