Configuration
Pages Router locale routing
Pages Router i18n configuration defines supported locales, default locale and detection behavior. The default locale generally has no path prefix; localeDetection false disables automatic detection redirects. This config does not create translations and does not apply the App Router locale-segment pattern. Built-in i18n routing does not work with static export; test separate deployment mode. Source: https://nextjs.org/docs/pages/guides/internationalization. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
i18n.locales; i18n.defaultLocaleWorking Example
Example Snippetnextjs
export default {i18n:{locales:['en-US','en-GB'],defaultLocale:'en-US',localeDetection:false}}