Skip to content

Commit e669033

Browse files
committed
Fix #22
1 parent 0807e2a commit e669033

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

generate.js

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ const inclusionsOrFixes = [
8383
{ countryCode: 'WS', currencyCode: 'WST' },
8484
// Niger (NE) uses West African CFA Franc (XOF), according to Wikipedia. Thanks @danielrentz
8585
{ countryCode: 'NE', currencyCode: 'XOF' },
86+
// Republic of the Congo (CG) uses 'Central African CFA Franc' (XAF), according to Wikipedia. Thanks @jasongitmail
87+
{ countryCode: 'CG', currencyCode: 'XAF' },
8688
];
8789

8890
let inclusions = 0;

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const countryToCurrency = {
4242
CC: 'AUD',
4343
CD: 'CDF',
4444
CF: 'XAF',
45-
CG: 'CDF',
45+
CG: 'XAF',
4646
CH: 'CHF',
4747
CI: 'XOF',
4848
CK: 'NZD',

readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD
7979
- For `Hungary` (`HU`), the currency `HUF` is being assumed.
8080
- For `Niger` (`NE`), the currency `XOF` is being assumed.
8181
- For `Palestine` (`PS`), the currency `ILS` is being assumed.
82+
- For `Republic of the Congo` (`CG`), the currency `XAF` is being assumed.
8283
- For `Samoa` (`WS`), the currency `WST` is being assumed.
8384
- For `South Georgia and the South Sandwich Islands` (`GS`), the currency `FKP` is being assumed.
8485
- For `South Korea` (`KR`), the currency `KRW` is being assumed.

0 commit comments

Comments
 (0)