Skip to content

Issues with the integration in a static Sveltekit application #655

Answered by ivanhofer
BinaryBolt asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the root-component is the first component in your render tree. In a SvelteKit application this would be routes/+layout.svelte and in a Svelte application this will probably be App.svelte.

You need to first load the locale you want to use (https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/generator#loading-locales) and then call setLocale(locale) in order to setup the svelte store.

typesafe-i18n works in all kind of applications. But depending on how your project setup is it could requre additional steps or some steps may slightly change.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BinaryBolt
Comment options

@ivanhofer
Comment options

@BinaryBolt
Comment options

Answer selected by ivanhofer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants