How do you implement internationalized routing in Next.js?
Instruction: Explain the steps to set up internationalized (i18n) routing in a Next.js application.
Context: This question tests the candidate's experience with building multi-language Next.js applications.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
I would define the supported locales, default, URL policy and fallback before adding translations. Routing selects a locale; it does not translate the content or guarantee a usable localized experience.
In the Pages Router, this complete next.config.js enables the built-in locale routing:...