published fresh until

next-intl or react-i18next for a Next.js App Router app?

Summary When choosing i18n for a Next.js App Router app, consider whether translations also need to work across Vite, React Native, or Node: the comparison recommends next-intl for mostly Next.js apps and react-i18next for shared translations. Next.js 16 deprecates middleware.ts in favor of proxy.ts.

Not for translating an existing Next.js app; see case-translate-existing-nextjs-app-llm-glossary-stale-keys

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your Next.js App Router site needs two or more languages, and an agent will pick a library at random or mix two. The wrong pairing breaks in ways that look like routing bugs: a 404 on deploy, a locale that leaks between users, strings that render with raw braces.

What the source says

A r/nextjs post from October 2026 summarizes what its author learned choosing between next-intl and react-i18next for a new project:

1. Server Components are the deciding factor. next-intl reads one request config for both getTranslations() (server) and useTranslations() (client). react-i18next's useTranslation() hook works in Client Components only; on the server you need a per-request i18next instance, because a shared global whose language changes per request can leak one user's locale into another concurrent request. 2. Bundle size is mostly your message catalog. With next-intl, text rendered in Server Components arrives as HTML; for client subtrees pass only the needed namespaces to NextIntlClientProvider. 3. Formats differ: next-intl uses ICU plurals; i18next uses suffixed keys such as file_one and file_other. ICU strings pasted into i18next without the plugin render literally. 4. setRequestLocale is the thing people forget: in the legacy setup, call it in every page and layout intended for static rendering; the current setup recommends next/root-params (available by default in Next.js 16.3 and later; earlier versions require experimental.rootParams). 5. As of November 2026, Next.js 16 deprecates middleware.ts in favor of proxy.ts; the post reports "Unable to find next-intl locale" with a leftover middleware.ts, while the upgrade guide still permits middleware for the Edge runtime. 6. Pick locale codes once (BCP 47, such as en-US) for file names, URLs and <html lang>.

Rule of thumb in the post: whoever owns the most code that renders text wins. Mostly a Next.js app, use next-intl; translations shared across Vite, React Native and Node, use react-i18next everywhere.

Checked against official docs

The Next.js proxy page lists v16.0.0 as the version where Middleware was deprecated and renamed to Proxy, with a codemod: npx @next/codemod@canary middleware-to-proxy .. The next-intl routing setup shows a proxy.ts exporting createMiddleware(routing), a [locale] segment validated with hasLocale and notFound(), and generateStaticParams. It marks setRequestLocale as the older way to enable static rendering and prefers next/root-params (available by default in Next.js 16.3 and later; earlier versions require experimental.rootParams).

Prompt to try (mine, untried)

"Set up next-intl for locales en and de in this Next 16 App Router project: routing.ts, proxy.ts (not middleware.ts), app/[locale]/layout.tsx with hasLocale and notFound, generateStaticParams, and navigation helpers from createNavigation. Move ThemeProvider outside the [locale] layout if it keeps state."

Another reported pitfall

A separate r/nextjs poster saw theme state toggle when the language changed with cacheComponents on; moving the ThemeProvider to a layout outside [locale] fixed it for them. One report, not reproduced here.

Limits

Sources are two community posts plus official docs, not a trial. Agent-run results are untested.

Primary source

Primary sources: r/nextjs comparison, r/nextjs ThemeProvider report, Next.js proxy file convention (Vercel, version history: v16.0.0 renamed Middleware to Proxy; codemod npx @next/codemod@canary middleware-to-proxy .) and next-intl routing setup (next-intl: proxy.ts with createMiddleware(routing), hasLocale and notFound, generateStaticParams, setRequestLocale called a legacy API with next/root-params recommended; available by default in Next.js 16.3 and later, requiring experimental.rootParams in earlier versions). The post's other claims (ICU vs i18next plurals, per-request instance, bundle size, ThemeProvider report) were not verified against docs.

next-intl vs react-i18next in App Router: Server Components, proxy.ts rename, setRequestLocale. Packaged by WhatWorks editors. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# next-intl or react-i18next for a Next.js App Router app?
Summary: When choosing i18n for a Next.js App Router app, consider whether translations also need to work across Vite, React Native, or Node: the comparison recommends next-intl for mostly Next.js apps and react-i18next for shared translations. Next.js 16 deprecates middleware.ts in favor of proxy.ts.
Copy for agent
get the whatworks thread nextjs-app-router-i18n-next-intl-or-react-i18next and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread nextjs-app-router-i18n-next-intl-or-react-i18next
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks