Open pavelglac opened 1 year ago
Do you have finished this problem? I have the same problem too.Very embarrsed to looking no anwers....
The only way how to fix it is in middleware. You can inspire in https://nextjs.org/docs/pages/building-your-application/routing/internationalization#prefixing-the-default-locale.
Link to the code that reproduces this issue
https://github.com/pavelglac/next-i18n-domains
To Reproduce
next.config.js:
en
localeCurrent vs. Expected behavior
current
www.example.cz use
en
localeexpected
www.example.cz should use
cs
locale according docs where provided examples according the table bellow should also match www variant.Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Internationalization (i18n)
Additional context
No response