Skip to content

Commit

Permalink
Fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Jan 27, 2024
1 parent 0807e2a commit e669033
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ const inclusionsOrFixes = [
{ countryCode: 'WS', currencyCode: 'WST' },
// Niger (NE) uses West African CFA Franc (XOF), according to Wikipedia. Thanks @danielrentz
{ countryCode: 'NE', currencyCode: 'XOF' },
// Republic of the Congo (CG) uses 'Central African CFA Franc' (XAF), according to Wikipedia. Thanks @jasongitmail
{ countryCode: 'CG', currencyCode: 'XAF' },
];

let inclusions = 0;
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const countryToCurrency = {
CC: 'AUD',
CD: 'CDF',
CF: 'XAF',
CG: 'CDF',
CG: 'XAF',
CH: 'CHF',
CI: 'XOF',
CK: 'NZD',
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD
- For `Hungary` (`HU`), the currency `HUF` is being assumed.
- For `Niger` (`NE`), the currency `XOF` is being assumed.
- For `Palestine` (`PS`), the currency `ILS` is being assumed.
- For `Republic of the Congo` (`CG`), the currency `XAF` is being assumed.
- For `Samoa` (`WS`), the currency `WST` is being assumed.
- For `South Georgia and the South Sandwich Islands` (`GS`), the currency `FKP` is being assumed.
- For `South Korea` (`KR`), the currency `KRW` is being assumed.
Expand Down

0 comments on commit e669033

Please sign in to comment.