Next.js · Middle · Question 31 of 75
How do you support multiple languages in the App Router?
- ✓Correct answer: An
app/[lang]/...segment + locale detection in proxy + dictionaries on the server - 2Enable the
i18noption innext.config- the App Router translates by itself - 3Create a separate Next.js app for each language
Explanation
The App Router doesn't use the built-in i18n option from the Pages Router. Typically you create a dynamic [lang] segment, redirect the user in proxy based on the Accept-Language header and load dictionaries in server components (they don't end up in the bundle). Libraries like next-intl are often used.