andrei @markeev.com · Nov 27

My thoughts on **static** html websites localization (and solution I ended up with) Avoid: ⛔ translation identifiers (i.e. `$t("my_company_name")` - because you want to see the text in context ⛔ wrapping all translatable texts in a certain syntax: it is a hassle and adds compile step 1/3

0 likes 1 replies

?

Replies

andrei · Nov 27

Use: 🟢 compile-time translation 🟢 manually crafted json, split into context blocks by filename, with added structure where necessary ✨ structure and sensible ids help translators ✨ your original html files (for English) remain completely functional without any compilation step! 2/3