Let's say I have this in my next.config.js:
module.exports = {
i18n: {
locales: ['en', 'fr', 'nl', 'sv'], // 'sv' is my browser language
defaultLocale: 'en',
},
}
If I browse to /en/gsp/random-slug i get redirected to /gsp/random-slug. The current locale and defaultLocale is set to en. All fine! But if I refresh the page the url stays the same but locale and defaultLocale is set to sv.
Steps to reproduce the behavior, please provide code snippets or a repository:
To keep both the locale and defaultLocale as 'en' after refresh.
Can you check next@canary, this is potentially already fixed
Oh. Yes, it was already fixed! Sorry for that. Will check canary next time.
No worries at all!
Most helpful comment
Oh. Yes, it was already fixed! Sorry for that. Will check canary next time.