14 ms·
I found localization complicated, so I rolled my own simple localization framework for the web. I mark all texts with one degree character (°) at the start. I h
by _nalply 6y ago
I found localization complicated, so I rolled my own simple localization framework for the web. I mark all texts with one degree character (°) at the start. I had a script looking for all occurrences and merging them into a CSV file which I gave to the translator who could edit the translation in Excel. To help the translator comments for the context were possible, even a limited option handling because of different grammar of language was there. I just added what was strictly needed for the project. Then dynamic JavaScript search-and-replace was applied after loading.
Bonus: it both translated text in HTML elements and JavaScript strings.
NIH at its best? But still today I couldn't find something so simple even for the non-technical translator. Because of CSV merging we could work with the translator in several rounds without hassle.