Skip to content

Commit

Permalink
Fix #13 about El Salvador
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodp committed Aug 11, 2023
1 parent b6f146e commit 6982ba0
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 @@ -71,6 +71,8 @@ const inclusionsOrFixes = [
{ countryCode: 'HR', currencyCode: 'EUR' },
// According to ISO 4217, Netherlands Antilles ('AN') uses Netherlands Antillean Guilder, code 'ANG'. Thanks @jayPare
{ countryCode: 'AN', currencyCode: 'ANG' },
// According to Wikipedia, El Salvador (SV) change from 'SVC' to 'USD' since 2001. Thanks @chaitanya-d
{ countryCode: 'SV', currencyCode: 'USD' },
];

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 @@ -209,7 +209,7 @@ export default {
SR: 'SRD',
SS: 'SSP',
ST: 'STN',
SV: 'SVC',
SV: 'USD',
SX: 'ANG',
SY: 'SYP',
SZ: 'SZL',
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD
- For `Chile` (`CLF`), the currency `CLP` is being assumed.
- For `Uruguay` (`UY`), the currency `UYU` is being assumed.
- For `Croatia` (`HR`), the currency `EUR` is being assumed since January 1st, 2023.
- For `El Salvador` (`SV`), the currency `USD` is being assumed.

> _Suggestions? Please [open an Issue](https://github.com/thiagodp/country-to-currency/issues/new)._
Expand Down

0 comments on commit 6982ba0

Please sign in to comment.