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
DTDrizzle Team
•Created by CS on 4/12/2024 in #help
Is there a way to define "nullable" types for magic SQL?
For example
sql<number | null>...
? It seems that you can't pass a union like that, but you can pass a type that you define as
type NumOrNull = number | null
, but when looking at the type hints of my return value it still shows just number.
Not a really important question at this point - just thought I'd ask! :)1 replies