Skip to content

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Jan 27, 2024
1 parent f80d979 commit c341c91
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 @@ -85,6 +85,8 @@ const inclusionsOrFixes = [
{ countryCode: 'NE', currencyCode: 'XOF' },
// Republic of the Congo (CG) uses 'Central African CFA Franc' (XAF), according to Wikipedia. Thanks @jasongitmail
{ countryCode: 'CG', currencyCode: 'XAF' },
// Dominican Republic (DM) uses 'East Caribbean Dollar' (XCD), according to Wikipedia. Thanks @jasongitmail
{ countryCode: 'DM', currencyCode: 'XCD' },
];

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 @@ -60,7 +60,7 @@ const countryToCurrency = {
DE: 'EUR',
DJ: 'DJF',
DK: 'DKK',
DM: 'DOP',
DM: 'XCD',
DO: 'DOP',
DZ: 'DZD',
EC: 'USD',
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD
- For `Chile` (`CLF`), the currency `CLP` is being assumed.
- For `Croatia` (`HR`), the currency `EUR` is being assumed since January 1st, 2023.
- For `Cuba` (`CU`), the currency `CUP` is being assumed since 2021.
- For `Dominican Republic` (`DM`), the currency `XCD` is being assumed.
- For `El Salvador` (`SV`), the currency `USD` is being assumed.
- For `Hungary` (`HU`), the currency `HUF` is being assumed.
- For `Niger` (`NE`), the currency `XOF` is being assumed.
Expand Down

0 comments on commit c341c91

Please sign in to comment.