Need help with understanding the core advantage of sveltekit-i18n over other libraries #128
-
Hello @jarda-svoboda and other community members, I am migrating my projects from Svelte to SvelteKit and exploring options for i18n. As of today we use svelte-i18n in our Svelte-based projects. While exploring I came across this package, which at initial view, looks like extension of svelte-i18n with few add-ons. Just to confirm whether my understanding is correct and get my facts straight about this library, could you help me with following questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @aakash14goplani, thanks for your great question!
Hope, this helped you to understand how this lib works. Let me, please, know if you have something else to clarify.) |
Beta Was this translation helpful? Give feedback.
Hi @aakash14goplani, thanks for your great question!
Yes, this library is heavily inspired by
svelte-i18n
, but it provides more flexible solution in terms of loading translations and the message syntax. Long story short:I've created this library because at that time, there wasn't any other library, which would be able to load my translation definitions dynamically on demand and effectively only at the time i really need concrete scope of translations for concrete locale.
Also, fetching translation definitions from the language server (or external service) was impossible with most of other libraries.
Let me explain you, what these mean:
Module-based translations - this means, that e…