node-i18n-iso-countries icon indicating copy to clipboard operation
node-i18n-iso-countries copied to clipboard

Wrong country name for Czechia

Open gplusdotgr opened this issue 1 year ago • 1 comments

Hello, the country name for CZ is wrong. https://en.wikipedia.org/wiki/ISO_3166-2:CZ#:~:text=ISO%203166%2D2%3ACZ%20is,coded%20in%20ISO%203166%2D1. It should be Czechia. This is also what is returned by Google Maps: image

{
  "predictions": [
    {
      "description": "Prague, Czechia",
      "matched_substrings": [
        {
          "length": 5,
          "offset": 0
        }
      ],
      "place_id": "ChIJi3lwCZyTC0cRkEAWZg-vAAQ",
      "reference": "ChIJi3lwCZyTC0cRkEAWZg-vAAQ",
      "structured_formatting": {
        "main_text": "Prague",
        "main_text_matched_substrings": [
          {
            "length": 5,
            "offset": 0
          }
        ],
        "secondary_text": "Czechia"
      },
      "terms": [
        {
          "offset": 0,
          "value": "Prague"
        },
        {
          "offset": 8,
          "value": "Czechia"
        }
      ],
      "types": [
        "geocode",
        "political",
        "locality"
      ]
    },
    {
      "description": "Prague International Airport (PRG), Aviatická, Prague 6, Czechia",
      "matched_substrings": [
        {
          "length": 5,
          "offset": 0
        }
      ],
      "place_id": "ChIJyw1526e_C0cRrPakrNGArS8",
      "reference": "ChIJyw1526e_C0cRrPakrNGArS8",
      "structured_formatting": {
        "main_text": "Prague International Airport (PRG)",
        "main_text_matched_substrings": [
          {
            "length": 5,
            "offset": 0
          }
        ],
        "secondary_text": "Aviatická, Prague 6, Czechia"
      },
      "terms": [
        {
          "offset": 0,
          "value": "Prague International Airport (PRG)"
        },
        {
          "offset": 36,
          "value": "Aviatická"
        },
        {
          "offset": 47,
          "value": "Prague 6"
        },
        {
          "offset": 57,
          "value": "Czechia"
        }
      ],
      "types": [
        "point_of_interest",
        "airport",
        "establishment"
      ]
    },
    {
      "description": "Prague Castle, Hradčany, Prague 1, Czechia",
      "matched_substrings": [
        {
          "length": 5,
          "offset": 0
        }
      ],
      "place_id": "ChIJw7ckbB6VC0cRnyUSr4g8zyo",
      "reference": "ChIJw7ckbB6VC0cRnyUSr4g8zyo",
      "structured_formatting": {
        "main_text": "Prague Castle",
        "main_text_matched_substrings": [
          {
            "length": 5,
            "offset": 0
          }
        ],
        "secondary_text": "Hradčany, Prague 1, Czechia"
      },
      "terms": [
        {
          "offset": 0,
          "value": "Prague Castle"
        },
        {
          "offset": 15,
          "value": "Hradčany"
        },
        {
          "offset": 25,
          "value": "Prague 1"
        },
        {
          "offset": 35,
          "value": "Czechia"
        }
      ],
      "types": [
        "tourist_attraction",
        "establishment",
        "point_of_interest"
      ]
    },
    {
      "description": "Prague, OK, USA",
      "matched_substrings": [
        {
          "length": 5,
          "offset": 0
        }
      ],
      "place_id": "ChIJVQS7EhTps4cRj-RpL12Tobo",
      "reference": "ChIJVQS7EhTps4cRj-RpL12Tobo",
      "structured_formatting": {
        "main_text": "Prague",
        "main_text_matched_substrings": [
          {
            "length": 5,
            "offset": 0
          }
        ],
        "secondary_text": "OK, USA"
      },
      "terms": [
        {
          "offset": 0,
          "value": "Prague"
        },
        {
          "offset": 8,
          "value": "OK"
        },
        {
          "offset": 12,
          "value": "USA"
        }
      ],
      "types": [
        "locality",
        "geocode",
        "political"
      ]
    },
    {
      "description": "Prague Airport Letňany, Hůlkova, Prague 19, Czechia",
      "matched_substrings": [
        {
          "length": 5,
          "offset": 0
        }
      ],
      "place_id": "ChIJMaCpDvDsC0cRciG9f04Qip0",
      "reference": "ChIJMaCpDvDsC0cRciG9f04Qip0",
      "structured_formatting": {
        "main_text": "Prague Airport Letňany",
        "main_text_matched_substrings": [
          {
            "length": 5,
            "offset": 0
          }
        ],
        "secondary_text": "Hůlkova, Prague 19, Czechia"
      },
      "terms": [
        {
          "offset": 0,
          "value": "Prague Airport Letňany"
        },
        {
          "offset": 24,
          "value": "Hůlkova"
        },
        {
          "offset": 33,
          "value": "Prague 19"
        },
        {
          "offset": 44,
          "value": "Czechia"
        }
      ],
      "types": [
        "point_of_interest",
        "establishment",
        "airport"
      ]
    }
  ],
  "status": "OK"
}

gplusdotgr avatar Jan 15 '25 05:01 gplusdotgr

It is sad to say it should be Czechia. But we do not like it (czech people) so I am glad it is Czech republic and not Czechia 😄

vilola avatar May 21 '25 11:05 vilola