rapideditor/country-coder

Kosovo is missing some attributes

Closed this issue · 2 comments

ENT8R commented

kosovo
The Kosovo is missing both an iso1A3 and iso1N3 attribute which makes it impossible to find e.g. the iso1A2 attribute using the following code:

import { iso1A2Code } from '@ideditor/country-coder';  
iso1A2Code('XKX');

Thanks, @ENT8R. Country-coder is missing these since Kosovo doesn't have officially-assigned ISO codes. XK is in the user-assignable namespace. Additionally, I learned the US FIPS code for Kosovo is KV, so I'll add that as an alias.

It does look like XKX is used as the alpha-3 equivalent, so I'll add that too. I couldn't find a numeric code but let us know if you see one.

ENT8R commented

Thank you for your explanation!
I did a quick research too and found the following paragraph on this page: https://www.iso.org/iso-3166-country-codes.html

Following notification from the United Nations (UN), the ISO 3166 maintenance agency assigns alpha-2 and alpha-3 country code elements to new UN member states. The numeric country code is assigned by the UN.

Obviously, the Kosovo is not yet an UN member state (98 of 193 UN member states recognize the Kosovo as a state), so it should not have a numeric country code yet too...