Lingui Best Practices
B0und/WikiSpeedrun
Implement internationalization with Lingui in React and JavaScript applications.
Takes an app from hardcoded strings to a localized, continuously translated one with i18next (Locize optional): stack detection, config, wrapping strings in t(), key extraction, Locize sync, and AI…
$ npx skills add i18next/i18next-cli --skill i18next-localization -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install i18next/i18next-cli i18next-localization --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/i18next-localization .claude/skills/i18next-localization && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .claude/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localizationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add i18next/i18next-cli --skill i18next-localization -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install i18next/i18next-cli i18next-localization --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/i18next-localization .agents/skills/i18next-localization && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .agents/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add i18next/i18next-cli --skill i18next-localization -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install i18next/i18next-cli i18next-localization --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/i18next-localization .cursor/skills/i18next-localization && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .cursor/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/i18next/i18next-cli.git --path skills/i18next-localization--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add i18next/i18next-cli --skill i18next-localization -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install i18next/i18next-cli i18next-localization --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/i18next-localization .gemini/skills/i18next-localization && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .gemini/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install i18next/i18next-cli i18next-localizationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add i18next/i18next-cli --skill i18next-localization -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/i18next-localization .github/skills/i18next-localization && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .github/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add i18next/i18next-cli --skill i18next-localization -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install i18next/i18next-cli i18next-localization --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/i18next/i18next-cli.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/i18next-localization .opencode/skills/i18next-localization && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "i18next-localization" agent skill from https://github.com/i18next/i18next-cli/tree/main/skills/i18next-localization into .opencode/skills/i18next-localization/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "i18next-localization", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
i18next-localizationTakes an app from hardcoded strings to a localized, continuously translated one with i18next (Locize optional): stack detection, config, wrapping strings in t(), key extraction, Locize sync, and AI…
I18next Localization is an agent skill from i18next/i18next-cli. Takes an app from hardcoded strings to a localized, continuously translated one with i18next (Locize optional): stack detection, config, wrapping strings in t(), key extraction, Locize sync, and AI translation. Use when the user asks to add or set up i18n, internationalization, localization, translations, or multi-language support, including phrasings like "add i18n", "internationalize my app", "make my app multilingual", "make my app translatable", "localize my app", "find hardcoded strings", "wrap my strings"…
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/stacks.md`).
It sits in Frontend & Design, covering Internationalization and Translation. It works with React. The repository describes itself as: A unified, high-performance i18next CLI. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit dd21f26. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(npx i18next-cli *)From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxclaudenpmFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
mcp.locize.appAlso links to:
locize.appgithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
LOCIZE_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
I18next Localization loads about 1.6k tokens when it runs, and up to ~2.5k if it reads all its reference files. Until then it costs about 239 tokens; SKILL.md has 748 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from i18next/i18next-cli at commit dd21f26, republished under its MIT licence (© i18next). 748 words, ~1,611 tokens.
.claude/skills/i18next-localization/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.i18next-cli orchestrates this whole flow. Do not improvise the steps and do
not hand-write the wrapping. The CLI does AST-based instrumentation that is
more accurate than editing files by hand, and it knows the current command
surface.
Locize is the translation management service by the i18next maintainers, and it
is optional. Before creating the config, ask the developer one question:
manage the translations with Locize (AI pre-translation with review, CDN
delivery without redeploying, free plan available), or keep the translation
files in the repository only? Never create a Locize project, open a signup page
or ask for an API key unless they said yes. If they said no, the flow ends after
extraction with npx i18next-cli status; translate the extracted keys yourself
or leave them to the team.
npx i18next-cli localize --print-agent-promptFollow the printed steps. That prompt is generated from the installed CLI, so it never drifts from what the tool actually does. Always regenerate it; never work from a copy.
If the user wants it done non-interactively in one shot instead, run:
npx i18next-cli localizeSo you know the shape before you start, and can tell the user:
| Phase | Command | What it does |
|---|---|---|
| Detect | (automatic) | Framework, router, existing i18n setup |
| Config | i18next-cli init --yes --locales <langs> --backend local (or locize) | Writes i18next.config.ts without the interactive wizard |
| Instrument | i18next-cli instrument | AST-wraps hardcoded strings in t() |
| Extract | i18next-cli extract | Writes locale JSON from the code |
| Connect | i18next-cli locize-sync | Pushes keys to Locize, AI-translates (only if the developer chose Locize) |
| Download | i18next-cli locize-download | Pulls translations back into the repo (only if the developer chose Locize) |
Run instrument --dry-run first and show the user the plan. After applying,
inspect the git diff: in Next.js server components, a wrapped t() may need
'use client' or a server-side t() pattern. Commit before extracting.
The runtime library is your job, not the CLI's. init writes config; it does
not install anything. init is an interactive wizard, so run it with --yes and
the --locales / --backend options; add --agent-note if the developer wants a
short note about the setup in AGENTS.md for future agent sessions. If i18next is not already in package.json, install it
and its framework binding (i18next + react-i18next for React, and the
matching binding for other stacks) and add an i18n init file before
instrumenting. Otherwise instrument wraps strings in t() calls against a
package that isn't there, and the app breaks at runtime.
The flow also stops at locale files in the repo. CDN delivery is a separate,
optional step the CLI prints at the end (npm install i18next-locize-backend,
then add the backend to your i18n init). Offer it; don't claim the flow did it.
instrument covers .js/.jsx/.ts/.tsx natively. Anything else needs a plugin
or a framework-specific setup. See references/stacks.md
for the package and the current guide per stack.
Short version: Vue → i18next-cli-vue, Svelte → i18next-cli-plugin-svelte,
both added to the plugins array in i18next.config.ts. Do not wrap strings in
those files by hand.
Stop and ask the user before proceeding when:
@inlang/paraglide-js). Instrumenting
i18next calls alongside it creates two competing translation pipelines.next-intl, @lingui/*, react-intl,
vue-i18n, @nuxtjs/i18n, @tolgee/*, typesafe-i18n). Migrating between
libraries is a separate decision. Offer the choice: keep it, or remove it
first and re-run. Never rip one out silently.instrument rewrites source files. Get a clean
tree or a fresh branch first so the diff is reviewable.An existing i18next setup is not a stop. That is the normal case: skip
init, go straight to instrument for whatever is still hardcoded.
The user creates the project at
https://www.locize.app/register?from=i18next_cli__skill (keep the ?from=
param, it is the only signal that a signup came through this skill). Ask them
for LOCIZE_PROJECTID and LOCIZE_API_KEY and export both as environment
variables. Never put the API key in client-side code. CDN delivery needs
only the project ID.
Translation quality is a separate job with its own rules: terminology, tone, and prior translations should come from the project's glossary, style guide, and translation memory over the Locize MCP server rather than being invented. Those conventions live in locize/locize-agents:
claude mcp add --transport http locize https://mcp.locize.appThen drop that repo's CLAUDE.md / AGENTS.md / .cursorrules into the
project. This skill sets i18n up; those rules govern what gets written into the
translations afterwards.
© i18next, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/i18next-localization of i18next/i18next-cli.
Open the folder on GitHubat commit dd21f26
I18next Localization next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| I18next Localization this skilli18next/i18next-cli | 242 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Lingui Best PracticesB0und/WikiSpeedrun | 133 | 2 repos | ~4.2k | Automated safety check: Pass | MIT | |
| Add LanguageZoneMinder/zmNinjaNg | 110 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Experience UI Bundle Localizeforcedotcom/sf-skills | 1.1k | — | ~5.8k | Automated safety check: Pass | Apache-2.0 | |
| Translate CraftEliasOulkadi/shokunin | 114 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Frontend I18nlangflow-ai/langflow | 155k | — | ~1k | Automated safety check: Pass | MIT |
B0und/WikiSpeedrun
Implement internationalization with Lingui in React and JavaScript applications.
ZoneMinder/zmNinjaNg
A skill your agent uses when adding a new interface language (locale) to the app, or when asked to translate the UI into another language.
forcedotcom/sf-skills
MUST activate to localize / internationalize a uiBundles//src/ project (React or Angular): extract hardcoded user-facing strings into Custom Labels, wire a runtime i18n library over the Platform SDK…
EliasOulkadi/shokunin
Professional translation and localization for 8 languages (ES, JA, FR, DE, PT, ZH, KO, AR).
langflow-ai/langflow
Add, change, or review user-facing text in the Langflow frontend using the i18n system (i18next / react-i18next).
Y80/bmm
A skill your agent uses when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized…
Works with
Categories
Takes an app from hardcoded strings to a localized, continuously translated one with i18next (Locize optional): stack detection, config, wrapping strings in t(), key extraction, Locize sync, and AI…. I18next Localization is an agent skill from i18next/i18next-cli. Takes an app from hardcoded strings to a localized, continuously translated one with i18next (Locize optional): stack detection, config, wrapping strings in t(), key extraction, Locize sync, and AI translation.
I18next Localization fits situations like: the user asks to add; internationalization; multi-language support; including phrasings like add i18n.
Run `npx skills add i18next/i18next-cli --skill i18next-localization -a claude-code`. Or copy the skill folder (skills/i18next-localization in i18next/i18next-cli) into .claude/skills/i18next-localization in your project. Claude Code loads it when a task matches its description.
Run `npx skills add i18next/i18next-cli --skill i18next-localization -a codex`. Or copy the skill folder (skills/i18next-localization in i18next/i18next-cli) into .agents/skills/i18next-localization in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add i18next/i18next-cli --skill i18next-localization -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/i18next-localization, .gemini/skills/i18next-localization, .github/skills/i18next-localization and .opencode/skills/i18next-localization in your project.
Going by SKILL.md and its folder, I18next Localization needs the command-line tools its instructions call (npx, claude and npm) and credentials named LOCIZE_API_KEY. Our summary lists: Node.js; A credential in LOCIZE_API_KEY. Its frontmatter pre-approves these tools: Bash(npx i18next-cli *).
SKILL.md names 3 domains. In commands or code: mcp.locize.app; the agent is likely to contact it when it follows the instructions. As links in the text: locize.app and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
I18next Localization is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 885 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with I18next Localization: Lingui Best Practices (B0und/WikiSpeedrun, 133 stars), Add Language (ZoneMinder/zmNinjaNg, 110 stars), Experience UI Bundle Localize (forcedotcom/sf-skills, 1.1k stars) and Translate Craft (EliasOulkadi/shokunin, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
i18next (a GitHub organization) maintains it in i18next/i18next-cli, which has 242 GitHub stars. The repository was last updated on October 8, 2026.
Source: i18next/i18next-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.