IntlPull
Tutorial
12 min read

Next.js App Router mit react-i18next: Vollständiges i18n-Tutorial 2026

Schritt-für-Schritt-Anleitung zur Einrichtung von react-i18next in Next.js 14, 15 und 16 App Router. Server Components, Client Components und Sprachwechsel.

IntlPull Team
IntlPull Team
03 Feb 2026, 11:44 AM [PST]
On this page
Summary

Schritt-für-Schritt-Anleitung zur Einrichtung von react-i18next in Next.js 14, 15 und 16 App Router. Server Components, Client Components und Sprachwechsel.

Schnelle Antwort

Um react-i18next mit Next.js App Router zu verwenden: Installieren Sie react-i18next i18next, erstellen Sie eine i18n-Konfigurationsdatei und verwenden Sie den useTranslation Hook.


Projekt-Setup

Terminal
npm install react-i18next i18next i18next-resources-to-backend

Übersetzungsdateien

locales/de/common.json:

JSON
1{
2  "titel": "Willkommen in unserer Anwendung",
3  "beschreibung": "Eine mehrsprachige Next.js-Anwendung"
4}

Verwendung

TSX
1// Server Component
2const { t } = await getTranslation(locale);
3return <h1>{t('titel')}</h1>;
4
5// Client Component
6const { t } = useTranslation(locale);
7return <p>{t('items', { count: 5 })}</p>;

Verwandte Artikel

Tags
next.js
react-i18next
app-router
i18n
tutorial
server-components
2026
IntlPull Team
IntlPull Team
Engineering

Building tools to help teams ship products globally. Follow us for more insights on localization and i18n.