Include translations in bundle
VolkerSchiewe opened this issue · comments
Volker Schiewe commented
Include translations directly into the bundle
Advantages
- Translations are immediately available after page load
- similar approach as
i18n
- can be an optional feature
Downsides
- increasing bundle size (especially in bigger projects)
Denys Vuika commented
There's already support for providing the translation data: https://github.com/DenysVuika/preact-translate#custom-translation-data. You can bundle the languages as part of your app