Replies: 1 comment
-
defaultLocale and localeDetection is not managed by next-i18next but by Next.js itself... // These are all the locales you want to support in
// your application
locales: ['en-US', 'fr', 'nl-NL'],
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: 'en-US', |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this nexti18next config and I use folder based config. I'm using Nextjs v14.2.5 with pages routes
I would have thought that
defaultLocale
would be used as a fallback, however when I gotowww.example.com/en-GB
the page redirects to 404.Is there a way for
defaultLocale
to be used like the name suggests?Beta Was this translation helpful? Give feedback.
All reactions