Localized country names

試著忘記壹切 提交于 2019-12-17 22:53:54

问题


Where can I get the country names in all languages? I need these to localize an application.


回答1:


The proper location to get this information from is CLDR - Unicode Common Locale Data Repository.

There you can find an updated list of countries (core/common/main), the data is available in numerous formats.




回答2:


I recommend this site: https://github.com/umpirsky/country-list

List of all countries with names and ISO 3166-1 codes in all languages and data formats.




回答3:


There's probably an ISO standard document you can buy (a useful standard is ISO 3166-1, I think).

On the other hand, you might just be able to scrape through the various language versions of this wikipedia page, since it has a list of country names. I did a random check and it seemed the entire list was in at least one non-English language, too.




回答4:


A know this is an old post but I found something that might help others who end up viewing this post via a google search.

This alternative to a select list gives (some) localised country names.

selectToAutocomplete by Jamie Appleseed

Take a look at the data-alternate-spelling tag for the items within the select menu.




回答5:


IP2Location provide a free CSV formatted list of country names in 81 different languages. I've found this the most useful list for this purpose. The data can be fairy easily transformed into different formats if required:

https://www.ip2location.com/free/country-multilingual



来源:https://stackoverflow.com/questions/3724970/localized-country-names

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!