filmov
tv
Translating a Next Js Website (App Router i18n)
![preview_player](https://i.ytimg.com/vi/SG0iaxkpPV0/maxresdefault.jpg)
Показать описание
I migrated my website to the `app` directory router. However, it’s a multilingual website with content both in French and English, and the translation library I was using, i18next, doesn’t work server-side. So this is the story of how I rolled my own translation system and what I had to set up to make it work.
And even if you don’t need to translate your NextJS website, you might need to use a middleware or a lookup for something else. If you don’t, this video on the new SEO features in Next JS might be interesting to you.
For those of you who are still here, there are three parts to this :
- first how I structured my app directory to handle locales
- second, how I coded the lookup function to translate strings within pages
- third, how I set up the middleware to switch users from one version to the other depending on their browser language.
Let’s dive right in.
----
And even if you don’t need to translate your NextJS website, you might need to use a middleware or a lookup for something else. If you don’t, this video on the new SEO features in Next JS might be interesting to you.
For those of you who are still here, there are three parts to this :
- first how I structured my app directory to handle locales
- second, how I coded the lookup function to translate strings within pages
- third, how I set up the middleware to switch users from one version to the other depending on their browser language.
Let’s dive right in.
----
Translating a Next Js Website (App Router i18n)
Internationalization in NextJs 14 with Next-Intl | i18n
Translate website content using Next.js internationalization and next-i18next
Next-translate 1.0 demo - I18n your Next.js +10 pages in an easy way
Translate Your Website with i18next
Next.js App Router with i18next (Internationalization Tutorial)
NextJS Routeur App : Traduction / i18n
Translate Next.js website with AI - weploy.ai
Google Translate API - Adding Multiple Language Translation Feature to Your Website
Type-Safe Translations with i18next for your TypeScript project
Internationalization (i18n) with Next.js!
Implement Awesome Next.js 14 Internationalization (i18n) with App Router and next-intl
NextJS APP Router | i18n Internationalization (i18next - next-intl) | Multiple languages (idioms)
Next.js 15 Multiple Languages in 2024 | i18n + Zod Error Translation Guide
How to setup i18n Language Translation between English and French (Next.js 13)
How to add Google Translator to your Next Js Projects #Shorts
Turn Figma design into Nextjs or Html Code Easily | Tutorial 2024 🔥
Building Internationalization in a Static NextJS Application Without External Libraries
Next.js App Directory & i18n - Full Tutorial
Next.js i18n: App Router + next-intl Tutorial
Internationalization in NextJs 13
NextJS 14 - i18next Multiple Languages
Add Multi Language Support in Next.js 15 Project
Nextjs Multi-Idioma
Комментарии