next-i18next
next-i18next
The easiest way to translate your Next.js apps.
Documentation
The next-i18next docs now live on www.i18next.com: the setup for the App Router and the Pages Router, the language in the address, backends and the API.
App Router and Pages Router
Since v16, next-i18next supports the Next.js App Router: getT in Server Components, useT in Client Components and createProxy for proxy.ts. This site runs both routers side by side; this page uses the Pages Router.
Using a coding agent?
Paste this prompt into Claude Code, Cursor, Codex, GitHub Copilot or Gemini CLI. i18next-cli prints the steps for its installed version, you review the diff, and the translation files stay in your repository unless you choose otherwise.
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.
Using ICU MessageFormat or MF2?
Since v16.4.0, import I18nProvider from next-i18next/icu or next-i18next/mf2 and keep your ICU or MF2 messages, in Server and Client Components.


