IntlPull
Tutorial
12 min read

Next.js App Router avec react-i18next : Tutoriel i18n Complet 2026

Tutoriel étape par étape pour configurer react-i18next dans Next.js 14, 15 et 16 App Router. Server Components, Client Components et changement de langue.

IntlPull Team
IntlPull Team
Feb 1, 2026
On this page
Summary

Tutoriel étape par étape pour configurer react-i18next dans Next.js 14, 15 et 16 App Router. Server Components, Client Components et changement de langue.

Réponse Rapide

Pour utiliser react-i18next avec Next.js App Router : Installez react-i18next i18next, créez un fichier de configuration i18n et utilisez le hook useTranslation.


Configuration du Projet

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

Fichiers de Traduction

locales/fr/common.json:

JSON
1{
2  "titre": "Bienvenue dans notre application",
3  "description": "Une application Next.js multilingue"
4}

Utilisation

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

Articles Connexes

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.