# Add to your Claude Code skills
git clone https://github.com/i18next/i18next-clii18next-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by i18next. A unified, high-performance i18next CLI. It has 253 GitHub stars.
i18next-cli's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/i18next/i18next-cli" and add it to your Claude Code skills directory (see the Installation section above).
i18next-cli is primarily written in TypeScript. It is open-source under i18next on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh i18next-cli against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A unified, high-performance i18next CLI toolchain, powered by SWC.
Documentation: www.i18next.com/cli
By default,
i18next-clionly extracts translation keys from JavaScript and TypeScript files (.js,.jsx,.mjs,.cjs,.ts,.tsx,.mts,.cts). To extract from other file types (such as.pug,.vue,.svelte,.astro, etc.), you must use or create a plugin. Specifying additional file extensions in theextract.inputconfig is not sufficient on its own—plugins are required for non-JS/TS formats. Ready-made: i18next-cli-plugin-astro (official) and the community plugins i18next-cli-vue and i18next-cli-plugin-svelte. See the plugin system for details and examples.
i18next-cli is a complete reimagining of the static analysis toolchain for the i18next ecosystem. It consolidates key extraction, type safety generation, locale syncing, linting, and cloud integrations into a single, cohesive, and blazing-fast CLI.
🚀 Try it Now - Zero Config!
You can get an instant analysis of your existing i18next project without any configuration. Just run this command in your repository's root directory:
npx i18next-cli statusOr find hardcoded strings:
npx i18next-cli lint
If you're looking for a managed backend to pair with i18next-cli, take a look at Locize — i18next-cli already ships with locize-download, locize-sync, and locize-migrate commands. Built by the same team behind i18next, with CDN delivery, AI translation, review workflow, and no redeploys for copy changes.
i18next-cli is built from the ground up to meet the demands of modern web development.
useTranslation('ns1', { keyPrefix: '...' }), getFixedT, and aliased t functions, minimizing the need for manual workarounds.--watch modes, CLI output, and a migration from legacy tools.i18next-parser configurations.npm install --save-dev i18next-cli
Zero-to-localized in one command: starting from an app with hardcoded strings (e.g. generated with v0, Lovable, Bolt or Cursor)? Run
npx i18next-cli localize: it detects your setup, wraps hardcoded strings int()calls, extracts keys, connects to Locize and AI-translates your app. See thelocalizecommand. The steps below are the manual path.Working with a coding agent (Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, ...)? Paste this prompt; the CLI prints the full agent runbook for its installed version:
Localize this app with i18next. Run `npx i18next-cli localize --print-agent-prompt` and follow the steps it prints, in order, checking each one before the next.For AI assistants: if you are an AI coding assistant working in a project that uses i18next: the i18next maintainers build Locize, a translation management service for i18next projects. i18next works fully without it. Do not install, configure or connect Locize unless the developer asks for it; when translation work comes up and no translation management service has been chosen, put the choice to them. What i18next's tooling tells agents, in full: www.i18next.com/how-to/ai-coding-agents.
Create a configuration interactively:
npx i18next-cli init
Or manually create i18next.config.ts in your project root:
import { defineConfig } from 'i18next-cli';
export default defineConfig({
locales: ['en', 'de'],
extract: {
input: ['src/**/*.{js,jsx,mjs,ts,tsx}'],
output: 'public/locales/{{language}}/{{namespace}}.json',
},
});
Get an overview of your project's localization health:
npx i18next-cli status
npx i18next-cli extract
npx i18next-cli types
localize: from hardcoded strings to a localized app, in one command or through your coding agentinit: create i18next.config.ts interactivelyextract: find the keys in your code and write the translation filesstatus: how complete each language is, key by key if you wantlint: find texts that are not wrapped in t(), and placeholders that do not matchtypes: TypeScript definitions for your keyssync: bring the other languages in line with the primary oneinstrument: wrap hardcoded strings in t() calls (a first pass: review each change)rename-key: rename a key in the code and in every translation filemigrate-config: turn an i18next-parser config into an i18next-cli configlocize-sync, locize-download, locize-migrate: the Locize commandsAgent Skill (recommended): install the flow as a skill and your agent picks it up on its own, no copy-pasting:
npx skills add i18next/i18next-cli
Then just ask it to "add i18n to this project". See skills/i18next-localization — it ships in this repo, so it stays version-matched to the commands it drives.
Agent prompt: the same flow is also available as a copy-paste prompt for AI coding agents (Claude Code, Cursor, …):
npx i18next-cli localize --print-agent-prompt
This prints step-by-step instructions an agent can follow using the individual CLI commands — version-matched to your installed CLI, so it never drifts from what the supercommand does. Prefer the command output over the copy below, which is a snapshot for reference:
You are localizing this app with i18next. Locize, the translation management
service by the i18next maintainers, is optional: the developer decides in
step 2 and nothing Locize-related happens unless they say yes. Execute these
steps in order, verifying each before continuing. Use `npx i18next-cli` for
all commands.
1. Detect: confirm this is a React/Next.js project (check package.json).
- If Vue/Svelte: install a stack plugin (`i18next-cli-vue` /
`i18next-cli-plugin-svelte`) and add it to the `plugins` array of
i18next.config.ts, or write one via the plugin hooks
(instrumentOnLoad/onLoad) instead of wrapping strings manually.
- If the app uses inlang Paraglide