Skip to content

fix(data): update country names, capitals, currencies and language names - #192

Open
dmythro wants to merge 10 commits into
mainfrom
fix/data-updates
Open

dmythro wants to merge 10 commits into
mainfrom
fix/data-updates

Conversation

@dmythro

@dmythro dmythro commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Data corrections only: three files under packages/countries/src/data/, plus one character in the country-name test (it now allows an apostrophe, for Côte d'Ivoire). No manifests or dist/ touched. It supersedes #184 and #185, whose data changes are included here (thank you to both authors), and follows an audit of the data against ISO 3166-1, ISO 639-1 and ISO 4217.

Entry Change Why
NR name and native → Naoero; Nauru kept as an alias The country notified the UN of the change on 26 June 2026; the UN M49 list shows Naoero | 520 | NRU. Alpha-3 is unchanged. From #184, without its version bump.
BQ name Caribbean Netherlands, native Caribisch Nederland; aliases Bonaire and Bonaire, Sint Eustatius and Saba The code covers three islands, not Bonaire alone. CLDR 49 names; the ISO short name contains a comma, which the name test rejects, so it is an alias.
BQ phone [5997, 5993, 5994], capital '', languages ['nl', 'en'] ITU numbering plan (Bonaire 7, Sint Eustatius 3, Saba 4); the islands share no capital; English is official on two of them. From #185, without pa, which is Punjabi.
GQ capital → Ciudad de la Paz Decreto Ley 1/2026 of 2 January 2026. Institutions are still relocating.
TL name → Timor-Leste, East Timor kept as an alias; continent OC → AS UN and ISO short name, and CLDR 49's default English name. UN M49 lists it under South-eastern Asia.
CI, CW, RE, BL, AX names → Côte d'Ivoire, Curaçao, Réunion, Saint Barthélemy, Åland Islands; the previous ASCII names kept as aliases The ISO 3166-1 English short names, as was done for Türkiye.
MN capital → Ulaanbaatar Current spelling, in line with Kyiv and Astana here.
EH languages + ar Arabic is the territory's main language; the native name here is already Arabic.
GS native → the full name; South Georgia kept as an alias It carried only "South Georgia".
VE currency + VED ISO 4217 lists both VES and VED for Venezuela.
UY, CO, MX currency + UYW, COU, MXV ISO 4217 fund codes, as already listed for BO, CL, CH and US.
XCG name → Caribbean Guilder ISO 4217 capitalisation.
so, rw, rm names → Somali, Kinyarwanda (native Ikinyarwanda), Romansh ISO 639 registry; so carried the country's name.
sd native → سنڌي The old value was misspelt. CLDR's self-name, in the Arabic script that the rtl flag from #187 implies.
ha native → Hausa CLDR's self-name, in the Latin script that the direction change in #187 implies.
TF native → Territoire des Terres australes et antarctiques françaises The value was cut off mid-word.

getCountryCode() still resolves every previous name and native name (Nauru, Bonaire, East Timor, South Georgia, Ivory Coast, Curacao, Reunion, Saint Barthelemy, Aland), except the cut-off TF string.

Data changes verified with:

 The country notified the UN of the change on 26 June 2026. Nauru stays as an alias; alpha-3 remains NRU.
 BQ covers Bonaire, Sint Eustatius and Saba, which share no capital. Adds the two other islands' phone prefixes and English; both earlier names stay as aliases.
 Declared the capital by Decreto Ley 1/2026 of 2 January 2026.
 Adds VED and the fund codes UYW, COU and MXV, as ISO 4217 List One (2026-09-17) lists them; capitalises Caribbean Guilder.
 Somali, Kinyarwanda and Romansh per the ISO 639 registry; Sindhi's native name in its default script; the cut-off native name of TF.
 Timor-Leste is the UN and ISO short name and CLDR's default English name; East Timor stays as an alias. UN M49 lists the country under South-eastern Asia.
 GS carried only half of its name. Hausa's native name is now in Latin script, its default per CLDR.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request updates selected country names, aliases, capitals, calling codes, continent assignments, languages, and currency lists. It also revises currency and language metadata, and changes the country-name validation regex to accept apostrophes.

Possibly related PRs

Suggested reviewers: dpkass

Change: Bug fix

Merge Risk: Minimal · up to e0afd

This PR corrects reference data such as country names, capitals, currencies, and language names, and keeps previous names resolvable through aliases. No concrete merge-blocking risk was found. Consumers that display or match the renamed values may see updated text.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change type (fix) and the scope (data). It lists the four data areas changed: country names, capitals, currencies and language names. The changeset updates those areas in packages/…
Description check Passed The description follows the repository template. It states the data-only scope and removes the need for manifest or dist changes. It gives a verified-with section listing the sources (UN M49, ISO 4217…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change type (fix) and the scope (data). It lists the four data areas changed: country names, capitals, currencies and language names. The changeset updates those areas in packages/countries/src/data/, so the title matches the main change. The title is 72 characters and 9 words, which is long but within a readable range.

Full details: Description check

Explanation

The description follows the repository template. It states the data-only scope and removes the need for manifest or dist changes. It gives a verified-with section listing the sources (UN M49, ISO 4217, ISO 639, CLDR, ITU, and others), which matches the 'Data changes verified with' field. The description includes a per-entry change table with reasons. It has no 'Issue #' line, so the author should state whether the PR closes an issue or remove that line. The PR says it supersedes #184 and #185, which can serve as the linked context. The template checklist item about unit tests passing is not addressed explicitly, and the description does not confirm that commits are separated. These are minor gaps.

Resolution

Optional: add an explicit 'Issue #' value (or remove the line), confirm that unit tests pass, and confirm that changes are split into separate commits where needed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

A rabbit checks each country name,
And adds an apostrophe to the game.
New codes and language names take their place,
While aliases keep old names in the race.
Then hops away with data in good shape.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ff0395a5-4c64-497c-a2f9-711facdea702
Commits

Reviewing files that changed from the base of the PR and between f7857a8 and e0afd14.

Files selected for processing: 4

  • packages/countries/src/data/countries.ts
  • packages/countries/src/data/currencies.ts
  • packages/countries/src/data/languages.ts
  • packages/test-js/index.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

… CW and RE

The ISO 3166-1 English short names: Åland Islands, Saint Barthélemy, Côte d'Ivoire, Curaçao and Réunion. The previous ASCII names stay as aliases, and the name test now allows an apostrophe.
@dmythro
dmythro marked this pull request as ready for review November 19, 2026 02:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant