biter777 / countries

Countries - ISO-639, ISO-3166 countries codes with subdivisions and names, ISO-4217 currency designators, ITU-T E.164 IDD phone codes, countries capitals, UN M.49 codes, IANA ccTLD countries domains, FIPS, IOC/NOC and FIFA codes, VERY VERY FAST, compatible with Databases/JSON/BSON/GOB/XML/CSV, Emoji countries flags and currencies, Unicode CLDR.
https://pkg.go.dev/github.com/biter777/countries?tab=doc
BSD 2-Clause "Simplified" License
390 stars 74 forks source link

Add native names #48

Open ivanjaros opened 1 year ago

ivanjaros commented 1 year ago

I am missing native names when I want to provide users with options to pick their country. It's all in English which does not make sense in certain situations.

So for example: Hungary -> Magyarország Slovakia -> Slovensko Czechia -> Česko Austria -> Österreich Spain -> España Russia -> Россия Bulgaria -> България China -> 中國

and so on.

biter777 commented 1 year ago

Do you have a complete list of country self-names?

ivanjaros commented 1 year ago

https://en.wikipedia.org/wiki/List_of_countries_and_dependencies_and_their_capitals_in_native_languages

https://www.worldatlas.com/articles/names-of-countries-in-their-own-languages.html

ivanjaros commented 1 year ago

this https://github.com/stefangabos/world_countries/blob/master/data/countries/_combined/countries.json

li1234yun commented 8 months ago

Hello, can you support native language name at the same time? Some i18n website maybe let user select their language, this will have many help!