IntlPull
Tutorial
12 min read

Next.js App Router con react-i18next: Tutorial Completo i18n 2026

Tutorial paso a paso para configurar react-i18next en Next.js 14, 15 y 16 App Router. Server Components, Client Components y cambio de idioma.

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

Tutorial paso a paso para configurar react-i18next en Next.js 14, 15 y 16 App Router. Server Components, Client Components y cambio de idioma.

Respuesta Rápida

Para usar react-i18next con Next.js App Router: Instala react-i18next i18next, crea un archivo de configuración i18n y usa el hook useTranslation.


Configuración del Proyecto

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

Archivos de Traducción

locales/es/common.json:

JSON
1{
2  "titulo": "Bienvenido a nuestra aplicación",
3  "descripcion": "Una aplicación Next.js multilingüe"
4}

Uso

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

Artículos Relacionados

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.