hauke96 / simple-task-manager

A simple tasking manager made for OpenStreetMap.

Home Page:https://stm.hauke-stieler.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate to ngx-translate

hauke96 opened this issue · comments

The ngx-translate is several order of magnitudes easier to use than the default i18n mechanism of Angular.

@miurahr
Hi, I switched from the default Angular translation mechanism to the much more convenient ngx-translate. Fortunately the new files are well readable JSON files, unfortunately it wasn't possible to convert the old XML ones into the new JSON ones so I had to remove the Japanese and Chinese files. I manually moved all the translations for the Spanish language but that was an awful lot of work and I may even made some mistakes (I don't speak Spanish, so I actually don't know if I did something wrong or not).

However, translating things is now much easier. If you still use STM and want the Japanese/Chinese language, you need to translate the client/src/assets/i18n/en-US.json file. The client/README.md contains the steps needed to add a new language. Sorry for the inconvenience but future changes to the internationalization are not much easier.