papandreou / inter

A JavaScript locale library based on information extracted from the Unicode CLDR database
BSD 3-Clause "New" or "Revised" License
21 stars 5 forks source link

South Sudan is missing in the countries list #14

Closed papandreou closed 8 years ago

papandreou commented 9 years ago

For a territory to be classified as a country, it currently has to be listed in https://github.com/papandreou/inter/blob/master/worldInfo/countries.csv and not be historical, nor a subdivision. The list appears to be a a bit outdated (the timestamps in the last column of the file say 2007-10-24). South Sudan declared its independence in 2011, and there has probably been other changes as well.

@bramstein, I think I got the file from you, do you know where I can find an updated version?

CC: @birkestroem

bramstein commented 9 years ago

@papandreou It came from a database that I maintained, but has since been shut down (I wasn't running it).

mwoc commented 8 years ago

We have another source in https://github.com/papandreou/node-cldr/blob/master/3rdparty/cldr/common/supplemental/supplementalData.xml which has this data, and is more up to date (South Sudan, Serbia, and Montenegro appear as individual states). @papandreou could we take a look at possibly starting to use that data source instead of countries.csv ?

papandreou commented 8 years ago

@mwoc Awesome, I hadn't noticed that. I can't believe there are so many diamond-plated needles to be found in that haystack :)

Yeah, let's work out how we can use that instead of countries.csv. I can help you get started?

papandreou commented 8 years ago

Oh, a CLDR 28 release came out in September. I updated to that on master.

mwoc commented 8 years ago
mwoc commented 8 years ago

codeMappings/territoryCodes If an entry does not have a numeric ID, it's not a country, but a(n exceptional) reservation. Sometimes those have an alpha3, but not always. All of those have an alpha2.

territoryContainment/group Self-explanatory

mwoc commented 8 years ago

https://github.com/papandreou/node-cldr/tree/feature/worldInfoFromCldr

mwoc commented 8 years ago

Closing through https://github.com/papandreou/inter/commit/7066525aa6e6609a361e932892a7f726e07e6a4a