DenysVuika / preact-translate

Minimalistic translate (i18n) library for Preact

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include translations in bundle

VolkerSchiewe opened this issue · comments

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)

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