/fuse-nextjs:nextjs-i18nfrom fuse-nextjs
Implements i18n in Next.js 16 App Router apps using next-intl or DIY dictionaries. Covers locale routing, localized navigation, formatting, RTL, SEO hreflang, and localized error files.
Ships in fuse-nextjs. 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.
Covers [locale]-prefixed routing, localized navigation components (Link, redirect, usePathname, useRouter), date/number/currency/relative-time formatting, RTL language support, SEO hreflang tags, and localized special files ([locale]/error.tsx, [locale]/not-found.tsx, global-error.tsx). This is the Next.js-specific i18n skill (App Router routing, proxy.ts integration) — for plain React apps without Next.js see react-i18n, and for Astro see astro-i18n.
Complete i18n solution with next-intl or DIY dictionary approach.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
[locale] dynamic segment| Feature | Benefit |
|---|---|
| App Router native | Full Server Components support |
| Type-safe messages | TypeScript autocompletion for keys |
| ICU MessageFormat | Pluralization, gender, select expressions |
| Async message loading | Load translations on-demand per locale |
| proxy.ts compatible | Works with Next.js 16 proxy pattern |
| Rich formatting | Dates, numbers, lists, relative time |
Full-featured library with routing, formatting, and type safety. Best for production applications needing comprehensive i18n support.
Lightweight approach using dynamic imports for simple translation needs. Good for projects wanting minimal dependencies.
All i18n code organized in modules/cores/i18n/:
src/modules/cores/i18n/src/config/routing.ts - Locale routing configsrc/modules/cores/i18n/messages/en.json - English translationssrc/modules/cores/i18n/messages/es.json - Spanish translationsproxy.ts - Locale detection and redirect logicAll routes prefixed with [locale] dynamic segment:
/en/about → English about page/es/about → Spanish about page/ → Redirects to default localeUse localized navigation from next-intl for automatic locale handling:
| Need | Reference |
|---|---|
| Initial setup | installation.md, routing-setup.md |
| Route config | routing-config.md, middleware-proxy.md |
| Translations | translations.md, messages-validation.md |
| Formatting | formatting.md |
| Components | server-components.md, client-components.md |
| Navigation | navigation.md |
| TypeScript | typescript.md |
| SEO | seo.md |
| Testing | testing.md |
| DIY approach | diy-dictionaries.md, diy-locale-detection.md |
{count, plural, one {# item} other {# items}}{gender, select, male {He} female {She} other {They}}dir attribute for right-to-left languagesLocalized error and loading states require specific handling:
[locale]/error.tsx - Localized error boundary[locale]/not-found.tsx - Localized 404 pageglobal-error.tsx - Root error fallbackSee error-files.md for complete patterns.
references/client-components.md (opens in a new tab)references/configuration.md (opens in a new tab)references/core-library.md (opens in a new tab)references/diy-dictionaries.md (opens in a new tab)references/diy-locale-detection.md (opens in a new tab)references/error-files.md (opens in a new tab)references/extraction.md (opens in a new tab)references/formatting.md (opens in a new tab)references/installation.md (opens in a new tab)references/integrations.md (opens in a new tab)references/messages-validation.md (opens in a new tab)references/middleware-proxy.md (opens in a new tab)references/navigation.md (opens in a new tab)references/pages-router.md (opens in a new tab)references/plugin.md (opens in a new tab)references/routing-config.md (opens in a new tab)references/routing-setup.md (opens in a new tab)references/runtime-requirements.md (opens in a new tab)references/seo.md (opens in a new tab)references/server-components.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-nextjs11 skills in this plugin
/better-authUse when implementing Next.js authentication with Better Auth — OAuth, 2FA, magic links, SSO, Stripe billing, or session management./nextjs-16Use when building Next.js 16 apps — Turbopack, App Router, Cache Components, proxy.ts, v15 migration. Not for stack scaffolding (nextjs-stack) or React SPA (react-expert)./nextjs-server-componentsUse when deciding Server vs Client Component boundaries in Next.js 16, fetching data directly in components, or streaming with Suspense./nextjs-shadcnUse when building UI components in Next.js App Router with shadcn/ui — forms, dialogs, tables, toasts, accessible components./nextjs-stackUse as the master reference for a full Next.js 16+ stack — Prisma 7, Better Auth, shadcn/ui, TanStack Form, Zustand. Not for core framework API details (use nextjs-16)./nextjs-tanstack-formUse when building forms in Next.js 16 with TanStack Form v1 — Server Actions, Zod validation, multi-step wizards, field arrays.Other plugins' skills for the same job