LL returns nothing in Sveltekit app #668
Answered
by
ivanhofer
AlexanderJinoridze
asked this question in
Q&A
-
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.
Answered by
ivanhofer
Apr 25, 2023
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.
1 reply
Answer selected by
AlexanderJinoridze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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