hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org
GNU Affero General Public License v3.0
70 stars 13 forks source link

Localize language and country names #109

Open hholzgra opened 1 year ago

hholzgra commented 1 year ago

Currently country and language names are (mostly?) given in their local form, but it would probably be better to display local names according to the current UI language / locale selection. E.g. when using english UI locale "Österreich" should be shown as "Austria", and when using german UI locale "United States of America" should be shown as "Vereinigte Staaten von Amerika".

This would especially helpful for country names not using the same character set as the current UI language.

Main problem right now is to find a good data set for this, or even better: a PIP or npm package covering all of this already wrapped up ready to use.

So far the best data set I've been able to find was

https://github.com/grosser/i18n_data/tree/master/cache/file_data_provider

which unfortunately is part of a Ruby package though, so not of any direct use. It would not be much of an issue to e.g convert the provided text data into something else, e.g. some gettext .po files ...