Translation tools to extract/generate/compile translation files for your Svelte App (must be used with the package svelte-translate) at build time.
npm install svelte-translate-tools -D
plugins: [
extracti18n({languages:['en-GB','fr-FR'], defaultLanguage:'en-GB'}),
generatei18n(),,
svelte({
preprocess: [
sveltePreprocess({ sourceMap: !production })
],
...
}),
...
]
plugins: [
extracti18n({languages:['en-GB','fr-FR'], defaultLanguage:'en-GB'}),
generatei18n(),,
svelte({
preprocess: [
preprocess_compilei18n({language:"fr-FR"}),
sveltePreprocess({ sourceMap: !production })
],
...
}),
...
]
then replace your
<DynamicTranslatedApp>
</DynamicTranslatedApp>
with
<PreTranslatedApp>
</PreTranslatedApp>