Open Phyks opened 5 years ago
You can use ?lng=en
in the URL like https://brouter.damsy.net/latest/?lng=de#map=12/45.0574/5.1955/standard to force the langage. In this case it is persisted in local storage.
But we could add a language picker indeed,sounds easy to implement
Oh, I did not know about the lng
GET parameter, thanks for the tip!
:+1: for having a language selector.
We were undecided about the language selector, but as your example shows, I guess it would at least make it clear that the app is translatable and what languages are available.
Looks like switching can be done with i18next.changeLanguage
.
Would be nice to have a way to get the list of available languages without requiring a release, e.g. from config.js
or a separate file generated by the build or transifex-pull
script.
Hi, Isn't this a fundamental requirement? It would help a lot.
BTW, I saw the Hebrew translation is still pending, can someone enable it in Transifex?
Hi,
What about letting users overload the default i18n value (based on browser locale I think)? I have two typical examples in mind:
Best,