gitfut icon indicating copy to clipboard operation
gitfut copied to clipboard

Stale ISO country names — Swaziland/Cape Verde/Macedonia/Turkey should be Eswatini/Cabo Verde/North Macedonia/Türkiye

Open sanket1035 opened this issue 4 months ago • 1 comments

What happened

lib/countries.ts (auto-generated from public/badges/flags/countries.json) ships several country names that are years out of date — the countries themselves haven't disappeared, they just changed their official English short name a while back:

Code Shows in picker Official name since
SZ Swaziland Eswatini (2018)
CV Cape Verde Cabo Verde (UN-adopted 2013)
MK Macedonia, the former Yugoslav Republic of North Macedonia (2019)
TR Turkey Türkiye (UN-updated 2022)

These aren't obscure — Eswatini and North Macedonia's renames were major international news, and gitfut is a World Cup app, so Türkiye showing under its old name is especially visible given Türkiye qualified for WC26.

Steps to reproduce

  1. Open the flag picker on any card
  2. Search "Turkey" or "Swaziland" or "Macedonia"
  3. Outdated name shows in the dropdown

Expected

Picker should show current official names: Eswatini, Cabo Verde, North Macedonia, Türkiye.

Root cause

public/badges/flags/countries.json (the source scripts/gen-countries.mjs reads from) is a stale ISO 3166 short-name dump. The flag codes (SZ, CV, MK, TR) are all still correct — only the display strings need updating.

Suggested fix

Update the four name strings in countries.json, then re-run scripts/gen-countries.mjs to regenerate lib/countries.ts. No code logic changes needed.

Environment

  • Browser: N/A (data-level issue)
  • OS: N/A

sanket1035 avatar Jul 19 '26 09:07 sanket1035

@sanket1035 Thanks for the report. I've updated North Macedonia and Eswatini, Turkey and Cape Verde are staying as they are keeping it simple to find them

Younesfdj avatar Jul 20 '26 02:07 Younesfdj