fix(data): adopt ISO short names — Czechia, Cabo Verde#170
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTwo country display names are updated in Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Updates country metadata in the packages/countries dataset to align English name fields with current ISO/UN short forms, which impacts reverse name lookup via getCountryCode().
Changes:
- Change
CV.namefromCape VerdetoCabo Verde. - Change
CZ.namefromCzech RepublictoCzechia.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| CV: { | ||
| name: 'Cape Verde', | ||
| name: 'Cabo Verde', | ||
| native: 'Cabo Verde', | ||
| phone: [238], | ||
| continent: 'AF', |
| CZ: { | ||
| name: 'Czech Republic', | ||
| name: 'Czechia', | ||
| native: 'Česká republika', | ||
| phone: [420], | ||
| continent: 'EU', |
What
Updates two countries to their official ISO 3166 / UN short English names, and aligns the Czech
nativeto its matching short form:name(before → after)native(before → after)CZCVCabo Verde(no change)Why
Consistency with the short-name policy already applied to Türkiye, Kyiv, Eswatini, and North Macedonia. "Czechia" (ISO/UN since 2016) and "Cabo Verde" (ISO/UN since 2013) are the current official English short names.
ISO 3166 defines names only in English and French — it has no native-language field — so
nativeis the dataset's own field.Českois the official Czech short form (the native equivalent of "Czechia"), chosen to match the short Englishnameand the dataset's short-native convention (e.g. Germany/Deutschland).CVnative was already the short, untranslatedCabo Verde.getCountryCode()matches onname/native, so the old strings no longer resolve:Worth a changelog note. Shipping in the same minor as the currency data updates.
Sources
Official ISO 3166 / UN short names — not arbitrary edits, and consistent with names the dataset already uses for the same reason (e.g. Türkiye per ISO 3166).
CZ → "Czechia" / "Česko" — "Czechia" registered in UN UNTERM/UNGEGN (5 Jul 2016) and added to ISO 3166 (Sep 2016), alongside the formal "the Czech Republic". ISO carries only the English/French name; the UN recognises Česko (short) / Česká republika (formal) as the Czech names:
Czechia; no native field)CV → "Cabo Verde" — the Republic of Cabo Verde asked the UN (24 Oct 2013) to use "Cabo Verde" in all official languages, untranslated; ISO 3166 follows UN usage: