LL returns nothing in Sveltekit app #668
-
|
I installed typesafe i18n in my newly created Sveltekit app but when I write {$LL.HI({name:"Svelte"})} it returns nothing, I did what was written in setup guide for svelte (not for Sveltekit tho, mb there is one and mb that's the reason idk) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You need to load the locale you want to use and also set the store. Take a look here: https://github.com/ivanhofer/typesafe-i18n-demo-svelte/blob/master/src/App.svelte#L12-L17 If you use SvelteKit you should take a look at this example: https://github.com/ivanhofer/typesafe-i18n-demo-sveltekit |
Beta Was this translation helpful? Give feedback.
You need to load the locale you want to use and also set the store. Take a look here: https://github.com/ivanhofer/typesafe-i18n-demo-svelte/blob/master/src/App.svelte#L12-L17
If you use SvelteKit you should take a look at this example: https://github.com/ivanhofer/typesafe-i18n-demo-sveltekit