countries
countries copied to clipboard
Incorrect handling of GB alpha2 codes for main countries
When searching for countries.ByName("scotland")
the return value is GB
.
For Scotland the correct ISO-3166-2 code should be GB-SCT
instead. Same applies for all other main countries in UK, which don't have a parent subdivision.
Those are:
- England -> GB-ENG
- Northern Ireland -> GB-NIR
- Scotland -> GB-SCT
- Wales -> GB-WLS
See https://www.iso.org/obp/ui/#iso:code:3166:GB.
I'm happy to provide a PR, if the change is accepted.