i18next Localization Setup
Turns an app full of hardcoded strings into a fully localized i18next app, with optional Locize sync and AI translation.
Dev & CodingIntermediate★ 241⑂ 38AI score 9/10Last updated: Oct 9, 2026
What it does
- Drives
i18next-clito detect your stack (React/Next.js/Vue/Svelte) and any existing i18n setup. - Runs the full flow: write
i18next.config.ts→ AST-wrap hardcoded strings int()→ extract locale JSON files. - Optionally connects Locize for AI pre-translation, review, CDN delivery, and pulling translations back into the repo.
- Enforces hard stops when a competing i18n library (next-intl, react-intl, vue-i18n, Paraglide, Lingui, Tolgee) is present or the git tree is dirty.
- Reminds you to install the runtime (
i18nextplus the framework binding) before instrumenting so the app doesn't break.
Who it's for
- Frontend developers retrofitting multi-language support onto an existing app.
- Anyone tired of manually wrapping hundreds of strings in
t('key'). - Projects that already depend on i18next but still have hardcoded copy.
- Teams deciding between repo-only JSON files and a managed translation backend.
Examples
- "Internationalize my Next.js app — I want German and French" → detects the stack, writes config, shows an
instrument --dry-runplan, then wraps and extracts. - "Find my hardcoded strings and wrap them" → runs
instrumentover.tsxfiles and walks you through the git diff, flagging server components that need'use client'. - "Move our translations to Locize and serve them from a CDN" →
locize-sync,locize-download, plus installingi18next-locize-backend.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/i18next/i18next-cli/HEAD/skills/i18next-localization/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/i18next-localization folder from the GitHub repo i18next/i18next-cli into my ~/.claude/skills/i18next-localization/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/i18next/i18next-cli.git /tmp/i18next-cli && mkdir -p ~/.claude/skills && cp -r /tmp/i18next-cli/skills/i18next-localization ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and confirm Node.js and git are installed:
node -v,git --version. - Clone the repository that contains the skill:
git clone https://github.com/i18next/i18next-cli.git /tmp/i18next-cli - Create your skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r /tmp/i18next-cli/skills/i18next-localization ~/.claude/skills/ - Verify with
ls ~/.claude/skills/i18next-localization— you should seeSKILL.mdand areferences/folder. - Restart Claude Code, open your project directory, and ask: "add i18n to this app".
- Before it runs, commit your work or create a fresh branch —
instrumentrewrites source files, and the skill will refuse to run on a dirty tree. - Only if you choose Locize: create a project on locize.app and export
LOCIZE_PROJECTIDandLOCIZE_API_KEYas environment variables; never embed the API key in client-side code.
View source on GitHub ↗License: MIT