/fuse-react:react-i18nfrom fuse-react
Implements react-i18next in React 19 apps (Vite/CRA, not Next.js): useTranslation, namespaces, pluralization, Suspense, Trans component, language detection, and testing.
Ships in fuse-react. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Also covers React 19 Suspense integration, the Trans component for JSX inside translations, RTL language support, fallback strategies for missing keys, and unit-testing i18n setups. This skill is explicitly for React apps without Next.js — for Next.js App Router i18n use nextjs-i18n, and for Astro use astro-i18n.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
ALWAYS apply SOLID principles from solid-react skill.
→ See ../solid-react/SKILL.md for complete rules
Key Rules:
FUSE_SOLID_MAX_LINES and split by responsibility when cohesion dropsmodules/[feature]/src/interfaces/| Hook | Purpose | Guide |
|---|---|---|
useTranslation() | Access translations and i18n instance | references/i18next-basics.md |
useTranslation(ns) | Load specific namespace | references/namespaces.md |
useTranslation([ns]) | Load multiple namespaces | references/namespaces.md |
→ See references/i18next-basics.md for detailed usage
| Package | Purpose | Size |
|---|---|---|
i18next | Core library | ~40KB |
react-i18next | React bindings | ~12KB |
i18next-http-backend | Lazy loading | ~5KB |
i18next-browser-languagedetector | Auto-detection | ~8KB |
Type-safe translations with autocompletion.
→ See references/typescript-types.md
Organize translations by feature for code splitting.
→ See references/namespaces.md
Count-based rules with ICU MessageFormat support.
→ See references/pluralization.md
Variables, dates, numbers, and currency formatting.
→ See references/interpolation.md
Load translations on-demand per route.
→ See references/lazy-loading.md
Auto-detect from browser, URL, cookie, localStorage.
→ See references/language-detection.md
Suspense, useTransition, Concurrent Rendering.
→ See references/react-19-integration.md
JSX elements inside translations.
→ See references/trans-component.md
Mock i18n for unit tests.
→ See references/testing.md
Right-to-left languages (Arabic, Hebrew).
→ See references/rtl-support.md
Handle missing keys gracefully.
→ See references/fallback-strategies.md
| Template | Use Case |
|---|---|
templates/basic-setup.md | Configuration with React 19 |
templates/language-switcher.md | Dropdown component |
templates/typed-translations.md | TypeScript Selector API |
templates/form-validation-i18n.md | Translated form errors |
templates/lazy-loading-routes.md | Per-route loading |
templates/date-number-formatter.md | Intl formatting |
templates/plural-interpolation.md | Count-based messages |
templates/trans-component-examples.md | JSX in translations |
templates/testing-i18n.md | Unit test setup |
src/
├── modules/cores/i18n/
│ ├── src/
│ │ ├── interfaces/
│ │ │ └── i18n.interface.ts
│ │ ├── services/
│ │ │ └── i18n.service.ts
│ │ ├── hooks/
│ │ │ └── useLanguage.ts
│ │ └── config/
│ │ └── i18n.config.ts
│ ├── components/
│ │ └── LanguageSwitcher.tsx
│ └── locales/
│ ├── en/
│ │ └── translation.json
│ └── es/
│ └── translation.json
└── main.tsx
<Suspense> for loading statesfallbackLngt('key'){{var}}i18n.changeLanguage()references/fallback-strategies.md (opens in a new tab)references/i18next-basics.md (opens in a new tab)references/interpolation.md (opens in a new tab)references/language-detection.md (opens in a new tab)references/lazy-loading.md (opens in a new tab)references/namespaces.md (opens in a new tab)references/pluralization.md (opens in a new tab)references/react-19-integration.md (opens in a new tab)references/rtl-support.md (opens in a new tab)references/templates/basic-setup.md (opens in a new tab)references/templates/date-number-formatter.md (opens in a new tab)references/templates/form-validation-i18n.md (opens in a new tab)references/templates/language-switcher.md (opens in a new tab)references/templates/lazy-loading-routes.md (opens in a new tab)references/templates/plural-interpolation.md (opens in a new tab)references/templates/testing-i18n.md (opens in a new tab)references/templates/trans-component-examples.md (opens in a new tab)references/templates/typed-translations.md (opens in a new tab)references/testing.md (opens in a new tab)references/trans-component.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fusengine/claude-plugins --plugin fuse-react8 skills in this plugin
/react-19Use when implementing React 19.3 patterns — use(), useOptimistic, useActionState, useEffectEvent, Activity, ViewTransition, Fragment refs, use(browser()), React Compiler./react-formsUse when building type-safe forms in React with TanStack Form v1 — Zod/Yup/Valibot validation, async validation, field arrays./react-shadcnshadcn/ui for React with TanStack Form. Use when building UI components, forms, dialogs, tables, toasts, or accessible components.Other plugins' skills for the same job