Open gbruins opened 7 years ago
I would love to see this fixed as well - I have to splice the countries array every time I use it.
@stclairdaniel Would you be able to share your work around for this issue? Thanks
@FrederickFoxxx This project seems abandoned. You might be better off looking for another library, perhaps country-json
@gbruins Thanks I'll check it out
@FrederickFoxxx I just spliced the list to take out the duplicate:
countries.splice(265, 1)
as far as my research here goes, also referenced here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#UK
UK has been reserved by the united Kingdom lest another country uses it as to avoid ambiguity. the official ISO alpha 2 code is however GB.
as such, i would defer to keeping the library aligned to ISO 2 codes as opposed to including reservations. im happy to open up a PR to remove UK if everyone here agrees?
United Kingdom,GB,GBR,,+44,GBP,🇬🇧,GBR,"eng,cor,gle,gla,cym",assigned United Kingdom,UK,,.uk,,GBP,,,"eng,cor,gle,gla,cym",reserved
Also, I believe the official name is "United Kingdom of Great Britain". Perhaps you can assign this name to the "GB" country code, so users who search for "Great Britain" will still get a result.