-
-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changeLanguage method doesn't adapt the URL with new language #938
Comments
Hi @ThaoD5, have you seen the simple example? If you add We have this behaviour covered by end-to-end tests. If you believe you have found a bug, please provide a reproducible repository. Thanks! |
Hey @isaachinman
Setup
That should be right, no ? Are there some known configs that breaks this ? We're building our new internal stack to include next I18next inside of it, but so far, the only issue remaining is this slug not getting replaced. Thanks again for your help & time. |
On an additional note @isaachinman I saw that the example does have the same issue that I have ( and apparently it is supposed to be the "simple" example you just sent ) |
I believe you are confusing the built-in NextJs internationalisation, and |
Hello,
I have been looking for hours now on a fix on why the
changeLanguage
method doesn't replace the previous language slug by the new one in the URL.Using :
i18n.changeLanguage('es');
I found this, the condition on
initializedLanguageOnce
but I have absolutely no idea AND didn't found anything related to this parameter that needs to betrue
.The locale changing is happening correctly
Am I missing something ? Is this intended ? Is there something manually to add ?
Thanks a lot
( issue created based on someone having the same error in 2019 )
@vimutti77 That might be a separate issue. Any client side calls to
changeLanguage
should trigger this callback. If you think you're experiencing a bug there, please do open a separate issue.Originally posted by @isaachinman in #413 (comment)
The text was updated successfully, but these errors were encountered: