Closed sikandarchishty closed 1 year ago
That's strange because the eno
page seems to work correctly when updating the locale. I suspect this is related to the default locale (passed as a second argument in createI18nMiddleware
).
I'll take a look asap.
I've fixed the issue in #164 and it will be part of the 1.0.0 release (#126) that will be released later today.
Describe the bug Relates to 109, when switching locale from a specific page it does not set the locale but changes when done in reverse (let me explain :-P).
ur
as default anden
as secondary.urban
(notice urban matchesur
locale, 109). When I am on this page and I switch toen
locale, it switches perfectly, whereas when on thisurban
page I switch fromur
toen
it does not redirect/rewrite or change, its just unresponsive, theNext-Locale
cookie doesn't change either.urlMappingStrategy: "rewrite"
andurlMappingStrategy: "redirect"
To Reproduce Codesandbox
Expected behavior It should switch regardless of matching locale initials or not.
About (please complete the following information):