Open Jan-Jan opened 1 year ago
I found that isLoading
doesn't get updated (even though I used it as $isLoading
).
Also, I tried moving all the functionality to $lib/i18n.ts
or even .svelte
, but that definitely doesn't work (with error failed to load module for ssr: /src/lib/i18n
).
FYI: It get language auto-detection to work from url using detection: { order: [
path] },
but not if I move it to lib/i18n.ts
Hi, thanks for this library!
I'm trying to use it with sveltekit. I have a path like
/[lang]/about
. Because I want to use i18n on all pages, and initialize it only once, I do so in/[lang]/+layout.svelte
. How do I then access thei18n
store in/[lang]/about/+page.svelte
?