i18n

i18n is a skill for Claude Code from filipebraida/adonisjs-starter-kit. It costs 105 tokens per session (2,011 once invoked), scanned A, original, MIT.

A guide for adding multiple languages to an AdonisJS application. It defines supported languages, stores translated text in JSON files, and provides translation methods for server and browser code.

In plain words
What is it for?
It helps register languages, add translated keys, detect a user's preferred language, keep the database and browser choice in sync, and use translations in routes, pages, and shared interface text.
Why use it?
It prevents missing translation entries, inconsistent language selection, and interfaces that unexpectedly mix languages.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps register languages, add translated keys, detect a user's preferred language, keep the database and browser choice in sync, and use translations in routes, pages, and shared interface text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filipebraida/adonisjs-starter-kit/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.

Any agent
npx skills add filipebraida/adonisjs-starter-kit --skill i18n
Clone the repo
git clone --depth 1 https://github.com/filipebraida/adonisjs-starter-kit

Made for: Claude Code.

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/skills/filipebraida/adonisjs-starter-kit/i18n/github.svg)](https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/i18n)
Your own site
<a href="https://agentmods.dev/skills/filipebraida/adonisjs-starter-kit/i18n"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/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/skills/filipebraida/adonisjs-starter-kit/i18n"><img src="https://agentmods.dev/badge/skills/filipebraida/adonisjs-starter-kit/i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,011 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00105 $0.02011
Opus 5.5 $0.00042 $0.00804
Sonnet 5.5 $0.00021 $0.00402
Haiku 4.5 $0.00011 $0.00201

Measured 15d ago against content hash b09b4ce20ee5, 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 15d 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.

packages/skills/i18n/SKILL.md · 108 lines

How it starts

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

i18n

Locales are declared in config/i18n.ts (supportedLocales, defaultLocale); its loaders are found at boot, one per module with a resources/lang/ folder. Translation JSON lives per module at app/<mod>/resources/lang/<locale>/<namespace>.json. The file name is the namespace, on the backend loader and on the frontend glob alike (core.json → core.layout.navMain.dashboard), so the file doesn't repeat core. inside. A module's main file is named after it; a module may hold others (auth/…/errors.json → errors.*, users/…/validator.json for VineJS messages). Backend uses ctx.i18n.t('key'); frontend uses useTranslation(). Locale detection runs as an HTTP middleware that prefers an X-User-Language header → a user-locale cookie → the browser's Accept-Language. Authenticated users have User.locale as the authoritative source: the switch endpoint writes both cookie and DB; every login flow syncs the cookie from user.locale if set.

Rules

  • Adding a key requires an entry in every supported locale. There is no auto-generate. Missing keys fall back to the default locale at runtime — the mixed-language UI is the symptom. Two checks guard it: the frontend t is typed from the en JSON files (.adonisjs/client/i18n.d.ts, generated by pnpm ace codegen), so an unknown key fails pnpm typecheck; and app/core/tests/unit/resources/translations.spec.ts fails when a locale lacks a key en has (or has one en lacks).
  • Key naming: <file>.<section>.<key>. The prefix is the file name, the same on the server and the frontend; inside <mod>.json you don't repeat it. E.g. inside core.json:
    { "layout": { "navMain": { "dashboard": "Dashboard" } } }
    
    and consumed as t('core.layout.navMain.dashboard').
  • Frontend: useTranslation() returns { t, changeLanguage, language }. t(key, params?) supports ICU interpolation. The browser downloads only the current locale (and the fallback); changeLanguage loads a new one before switching. SSR bundles every locale.
  • Backend: ctx.i18n.t('key', params?). The i18n instance is bound to HttpContext by the locale-detection middleware. Use in controllers, actions (if i18n was in the input), and mail classes.
  • ICU interpolation: {name} in the string, t('key', { name: 'Alice' }) at the call site. Also supports plurals and selectors.
  • Validation messages: VineJS uses the request's i18n instance through the messages provider bound in the locale-detection middleware. Localize by adding keys under <field>.<rule> in <mod>/resources/lang/<locale>/validator.json.
  • User preference: User.locale is a nullable column. When authenticated, the switch endpoint updates both the cookie and user.locale. Login flows sync user-locale cookie from user.locale if set. Pre-login (marketing/auth pages) uses cookie / Accept-Language, never DB.
  • Enum labels are keys, not code. Each enum value has a <mod>.<enum>.<value> key in every locale (users.roles.admin.name, users.activity.events.roles_synced); transformers ship the raw value and the screen translates it. The enum file never holds display text.
  • Server-built text is translated before it leaves the request: mails get their strings in the action (see [[mail]]); a flash message uses ctx.i18n.t(...).
  • packages/ui holds no keys. A primitive takes its texts as props with English defaults (labels on DataTable, emptyMessage/clearLabel on the filters); a wrapper in #core/ui fills them from t (#core/ui/components/data_table).
  • Locale switcher UI: <LanguageSwitcher /> lives in every logged-in shell — see [[layout-shells]].
  • Adding a locale means updating supportedLocales in config/i18n.ts, adding a folder under every module's resources/lang/, and confirming every key exists in the new locale.

Read the full file on GitHub · 108 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. 15d ago Changed · +1 lines b09b4ce20ee5
  2. 3mo ago First seen · 107 lines · 105 tokens per session scan A 7c79420768a7

Subscribe to this mod's changes

i18n is a skill published in the GitHub repository filipebraida/adonisjs-starter-kit (99 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 2,011 once invoked, about $0.0004 per session on Opus 5.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.

Related

i18n compared with skills from other repositories

i18n next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
i18nfilipebraida/adonisjs-starter-kitSkill99yesterdayMITA105Claude Code
calendarcnvmnog/calendarcnSkill1644d agoMITA76Claude Code, Codex
ui-beatsnikhils4/ui-beatsSkill2363mo agoMITA62Claude Code, Codex
react-doctorshipkit-io/bonesSkill21yesterdaynoneA31Claude Code, Codex
magic-uimagicuidesign/magicuiSkill24ktodayMITA56Claude Code, Codex
tanstack-queryKiranism/next-shadcn-dashboard-starterSkill7.3k3d agoMITA48Claude Code, Codex
gpt-image-playgroundCookSleep/gpt_image_playgroundSkill4.2k2d agoMITA164Claude Code, Codex