CS
Explore posts from serversRoute switching when using i18n setLocale doesn't work...?
Hey there Nuxt community!
I've been having a problem with my Nuxt application, (seemingly after upgrading my Nuxt package from 3.11.1 to 3.11.2 - but I'm not sure if that's the sole reason....)
My problem is that when I switch the locale for my webapp, I don't have a "re-route" to the new route (for example from english ("/") to german ("/de-DE"), it stays on "/").
My current code looks something like this (like I said, after various iterations of things that didn't appear to work)
I'm pretty sure that switchPath version used to work before I upgraded my Nuxt version.... But currently it doesn't anymore. The cookie value does get changed, but the site url doesn't, which sucks, cause when refreshing the page it will swap back to the original language (not the new one that it was supposed to use)...
I'd really appreciate it if anyone could give me some pointers/things to try or knows any other tips! Thanks!
19 replies