Atem18 / isocodes

This project provides lists of various ISO standards (e.g. country, language, language scripts, and currency names) in one place
GNU Lesser General Public License v2.1
14 stars 4 forks source link

Lookup mechanism for renamed countries e.g. Swaziland #275

Open sandy-fairsupply opened 12 months ago

sandy-fairsupply commented 12 months ago

Countries change names from time to time. For example, Swaziland changed its name to Eswatini in 2018, but kept their country code (SWZ). "Swaziland" doesn't appear in countries or former_countries, so it's not possible to look up the country code based on old data without a separate look-up table.

It would be nice to have a mechanism for looking up countries by their former names.

Atem18 commented 12 months ago

Hi,

thanks for the bug report, I will check how to do that.

Atem18 commented 12 months ago

@sandy-fairsupply Since "Swaziland" does not appear in countries or former_countries but still is translations, this looks like a bug. Can you file one in the upstream repo : https://salsa.debian.org/iso-codes-team/iso-codes ?

sandy-fairsupply commented 11 months ago

I would, but I don't have a Salsa account which is a bit of a barrier for me. Also, I think I lack the experience in this domain to make a good report. Would you mind doing it?

Relevant documents:

Curiously, it doesn't seem to be in ISO 3166-3 (although I don't have access to the official document). Maybe that's because it was just renamed, not dissolved.

I suspect the only way to deal with this kind of issue would be to consume the updates (like the one I linked to above), rather than exclusively importing the codes in bulk.

Atem18 commented 11 months ago

This library is intended to allow easy access to the debian upstream files so if there is any issue, it should be reported there.

I will make a bug report and see what they are saying.

Atem18 commented 11 months ago

@sandy-fairsupply Bur report created : https://salsa.debian.org/iso-codes-team/iso-codes/-/issues/46

Let's see what they will say.