Re:Show HN: a18n – Automated I18n JavaScript Solution
by FallenMax on Wednesday September 16, 2020 @10:47PM
(#24500658)
Will definitely look into .vue support!
But for compile translations (per-language), I'm not so sure if added performance can justify introduced complexity (for users' build/serve workflow).
Finding a good solution for VueJS, which has it's own .vue files was particularly hard. I ended up building on top an existing i18n extract tool and integrating it with the VueJS compiler to extract both HTML and JS translations.
What I'd like to see, that I have not seen anywhere (other than a broken and not currently maintained Webpack module) is a plugin for Babel or Typescript compilers that allows the compiler to compile translations into the final output packages and produce one for each language. I think this is preferable to loading translations at runtime and swapping them in.