Wanderson Silva
Wanderson Silva

Reputation: 1199

Information for localization

Is there a list with complete information about caracteristics like:

for countries around the world?

I am doing it myself, however, as it takes too long to gather the data, I tought maybe someone have already have it done.

Upvotes: 1

Views: 87

Answers (2)

Mihai Nita
Mihai Nita

Reputation: 5787

Don't reinvent the wheel. Start with CLDR, the Common Locale Data Repository (http://cldr.unicode.org/)

Or if you want to honor the locale preferences in your application, use standard I18N APIs (from you platform, whatever that is, or a popular library, like ICU, http://site.icu-project.org/)

Upvotes: 2

Christophe
Christophe

Reputation: 73540

For currencies you can rely on international standard ISO 4217. It also refers to the country code of each currency code. This website provides this dataset for download.

For date formats, the best reference seems to be wikipedia.

The measurement units is a very complex domain, because you need to know which dimension you measure (speed, distance, volume, ...) and the units (paper size in cm is not the same as road distance in km). Here you have some lists per type of units, but not per country. This website shows a list of system of measurements in use per country. You'll see that fortunately ùany of them share the metric system, so taht you could use an approach "by exception" documenting yourself only on the remaining ones".

For languages, you have international standard ISO 639 or IANA , but it's country independent. You can look at reference lists for locale such as here: it associates a language code to a country code, so that you could complete the standard information. Note that some countries have several language, and you cannot and should not decide which one is preferred.

For telephone masks, there is only an international list of prefix. The usage vary greately accross countries. Some have fixed format, some use variable formats, some have zone prefixes and some not. Sometimes there is even no clear standard in the country and there are several coexisting usages. I'm not aware of any global list of these.

For timezones around the world, you could have a look at IANA which is extremely comprehensive.

For decimal and thousand separators, it's not an international standard. Again I'd suggest to refer to Wikipedia

Upvotes: 1

Related Questions