Skip to content

Commit

Permalink
Merge pull request #147 from guardian/vb/update-countrycode-list
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs authored Oct 25, 2022
2 parents 9d7ad5e + fd85d19 commit 0ed0aed
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-cycles-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@guardian/libs": minor
---

Added `VG` (British Virgin Islands) to `countries`
2 changes: 1 addition & 1 deletion libs/@guardian/libs/src/countries/@types/CountryCode.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// https://en.wikipedia.org/wiki/ISO_3166-1
export type CountryCode =
| 'AD'
| 'AD'
| 'AE'
| 'AF'
Expand Down Expand Up @@ -239,6 +238,7 @@ export type CountryCode =
| 'VA'
| 'VC'
| 'VE'
| 'VG'
| 'VI'
| 'VN'
| 'VU'
Expand Down
3 changes: 2 additions & 1 deletion libs/@guardian/libs/src/countries/@types/CountryKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export type CountryKey =
| 'vanuatu'
| 'venezuela'
| 'vietnam'
| 'virgin_islands'
| 'virgin_islands_british'
| 'virgin_islands_us'
| 'wallis_and_futuna'
| 'western_sahara'
| 'yemen'
Expand Down
6 changes: 5 additions & 1 deletion libs/@guardian/libs/src/countries/countries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,11 @@ export const countries: Record<CountryKey, Country> = {
countryCode: 'VN',
name: 'Viet Nam',
},
virgin_islands: {
virgin_islands_british: {
countryCode: 'VG',
name: 'Virgin Islands (British)',
},
virgin_islands_us: {
countryCode: 'VI',
name: 'Virgin Islands (U.S.)',
},
Expand Down

0 comments on commit 0ed0aed

Please sign in to comment.