Skip to content

Outdated country names and inconsistencies in en/address.yml #2848

@Oli0li

Description

@Oli0li

Describe the bug

While looking at lib/locales/en/address.yml, I noticed some small issues as follows:

Some country names are not up to date:

This is only an issue in the English locale, as the French one has no country name and the Japanese is already up to date.

Case/spelling inconsistency:

  • The countries listed as keys in "country_by_name" are all in snake case, except for "solomon Islands" and "wallis And Futuna".
  • The "Virgin Islands, U.S." listed in "country" is listed as "Virgin Islands, U.s." in the country_by_code's corresponding value.

Expected behavior

I would suggest to make some changes as follows:

country names:
"Cape Verde" -> "Cabo Verde"
"Macedonia" -> "North Macedonia"
"Swaziland" -> "Eswatini"
"Turkey" -> "Türkiye"

country_by_code keys:
cape_verde -> cabo_verde
swaziland -> eswatini
macedonia_the_former_yugoslav_republic_of -> north_macedonia
solomon Islands -> solomon_islands
turkey -> türkiye
wallis And Futuna -> wallis_and_futuna

country_by_code values:
"Cape Verde" -> "Cabo Verde"
"Swaziland" -> "Eswatini"
"Virgin Islands, U.s." -> "Virgin Islands, U.S."
"Macedonia, The Former Yugoslav Republic Of" -> "North Macedonia"
"Turkey" -> "Türkiye"

I am happy to open a PR if you think this would be worth changing.

Additional context

Here's a reference for countries that have changed their names: https://en.wikipedia.org/wiki/Geographical_renaming#List_of_significant_name_changes
The ones I mentioned do not seem to have changed their country code as far as I can tell: https://en.wikipedia.org/wiki/ISO_3166-1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions