[i18n] Turn off automatic locale detection #18617
Unanswered
WonderfulWorlds
asked this question in
Help
Replies: 1 comment 1 reply
-
From canary release docs The automatic locale detection can be disabled with: // next.config.js
module.exports = {
i18n: {
localeDetection: false,
},
} When |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to turn off this feature?
Automatic Locale Detection
When a user visits the application root (generally /), Next.js will try to automatically detect which locale the user prefers based on the Accept-Language header and the current domain.
If a locale other than the default locale is detected, the user will be redirected
I'd like the site to always display in the default language unless explicitly routed to another language.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions