Skip to content

Commit

Permalink
fix(currency): modernise currency list for 2023 (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mayer committed Feb 28, 2023
1 parent 59157a4 commit e6f949b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 107 deletions.
94 changes: 7 additions & 87 deletions src/locales/en/finance/currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@ export default [
code: 'CUP',
symbol: '₱',
},
{
name: 'Cuban Peso Convertible',
code: 'CUC',
symbol: '$',
},
{
name: 'Cape Verde Escudo',
code: 'CVE',
Expand Down Expand Up @@ -194,11 +189,6 @@ export default [
code: 'DZD',
symbol: '',
},
{
name: 'Kroon',
code: 'EEK',
symbol: '',
},
{
name: 'Egyptian Pound',
code: 'EGP',
Expand Down Expand Up @@ -279,11 +269,6 @@ export default [
code: 'HNL',
symbol: 'L',
},
{
name: 'Croatian Kuna',
code: 'HRK',
symbol: 'kn',
},
{
name: 'Gourde',
code: 'HTG',
Expand Down Expand Up @@ -409,16 +394,6 @@ export default [
code: 'LRD',
symbol: '$',
},
{
name: 'Lithuanian Litas',
code: 'LTL',
symbol: 'Lt',
},
{
name: 'Latvian Lats',
code: 'LVL',
symbol: 'Ls',
},
{
name: 'Libyan Dinar',
code: 'LYD',
Expand Down Expand Up @@ -461,7 +436,7 @@ export default [
},
{
name: 'Ouguiya',
code: 'MRO',
code: 'MRU',
symbol: '',
},
{
Expand Down Expand Up @@ -621,7 +596,7 @@ export default [
},
{
name: 'Leone',
code: 'SLL',
code: 'SLE',
symbol: '',
},
{
Expand All @@ -634,16 +609,16 @@ export default [
code: 'SRD',
symbol: '$',
},
{
name: 'South Sudanese pound',
code: 'SSP',
symbol: '',
},
{
name: 'Dobra',
code: 'STN',
symbol: 'Db',
},
{
name: 'El Salvador Colon',
code: 'SVC',
symbol: '₡',
},
{
name: 'Syrian Pound',
code: 'SYP',
Expand Down Expand Up @@ -749,76 +724,21 @@ export default [
code: 'XAF',
symbol: '',
},
{
name: 'Silver',
code: 'XAG',
symbol: '',
},
{
name: 'Gold',
code: 'XAU',
symbol: '',
},
{
name: 'Bond Markets Units European Composite Unit (EURCO)',
code: 'XBA',
symbol: '',
},
{
name: 'European Monetary Unit (E.M.U.-6)',
code: 'XBB',
symbol: '',
},
{
name: 'European Unit of Account 9(E.U.A.-9)',
code: 'XBC',
symbol: '',
},
{
name: 'European Unit of Account 17(E.U.A.-17)',
code: 'XBD',
symbol: '',
},
{
name: 'East Caribbean Dollar',
code: 'XCD',
symbol: '$',
},
{
name: 'SDR',
code: 'XDR',
symbol: '',
},
{
name: 'UIC-Franc',
code: 'XFU',
symbol: '',
},
{
name: 'CFA Franc BCEAO',
code: 'XOF',
symbol: '',
},
{
name: 'Palladium',
code: 'XPD',
symbol: '',
},
{
name: 'CFP Franc',
code: 'XPF',
symbol: '',
},
{
name: 'Platinum',
code: 'XPT',
symbol: '',
},
{
name: 'Codes specifically reserved for testing purposes',
code: 'XTS',
symbol: '',
},
{
name: 'Yemeni Rial',
code: 'YER',
Expand Down
38 changes: 19 additions & 19 deletions test/__snapshots__/finance.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ exports[`finance > 42 > creditCardNumber > with issuer option 1`] = `"4791775514

exports[`finance > 42 > currency 1`] = `
{
"code": "IQD",
"name": "Iraqi Dinar",
"symbol": "",
"code": "ILS",
"name": "New Israeli Sheqel",
"symbol": "",
}
`;

exports[`finance > 42 > currencyCode 1`] = `"IQD"`;
exports[`finance > 42 > currencyCode 1`] = `"ILS"`;

exports[`finance > 42 > currencyName 1`] = `"Iraqi Dinar"`;
exports[`finance > 42 > currencyName 1`] = `"New Israeli Sheqel"`;

exports[`finance > 42 > currencySymbol 1`] = `""`;
exports[`finance > 42 > currencySymbol 1`] = `""`;

exports[`finance > 42 > ethereumAddress 1`] = `"0x8be4abdd39321ad7d3fe01ffce404f4d6db0906b"`;

Expand Down Expand Up @@ -96,7 +96,7 @@ exports[`finance > 42 > pin > with length option 1`] = `"3791775514"`;

exports[`finance > 42 > routingNumber 1`] = `"379177554"`;

exports[`finance > 42 > transactionDescription 1`] = `"invoice transaction at Wiegand, Deckow and Reynolds using card ending with ***(...8361) for SDG 374.54 in account ***55141004"`;
exports[`finance > 42 > transactionDescription 1`] = `"invoice transaction at Wiegand, Deckow and Reynolds using card ending with ***(...8361) for RSD 374.54 in account ***55141004"`;

exports[`finance > 42 > transactionType 1`] = `"withdrawal"`;

Expand Down Expand Up @@ -146,17 +146,17 @@ exports[`finance > 1211 > creditCardNumber > with issuer option 1`] = `"4487-219

exports[`finance > 1211 > currency 1`] = `
{
"code": "XDR",
"name": "SDR",
"code": "VUV",
"name": "Vatu",
"symbol": "",
}
`;

exports[`finance > 1211 > currencyCode 1`] = `"XDR"`;
exports[`finance > 1211 > currencyCode 1`] = `"VUV"`;

exports[`finance > 1211 > currencyName 1`] = `"SDR"`;
exports[`finance > 1211 > currencyName 1`] = `"Vatu"`;

exports[`finance > 1211 > currencySymbol 1`] = `""`;
exports[`finance > 1211 > currencySymbol 1`] = `""`;

exports[`finance > 1211 > ethereumAddress 1`] = `"0xeadb42f0e3f4a973fab0aeefce96dfcf49cd438d"`;

Expand Down Expand Up @@ -196,7 +196,7 @@ exports[`finance > 1211 > pin > with length option 1`] = `"9487219061"`;

exports[`finance > 1211 > routingNumber 1`] = `"948721904"`;

exports[`finance > 1211 > transactionDescription 1`] = `"deposit transaction at Trantow - Satterfield using card ending with ***(...4316) for STN 928.52 in account ***19061627"`;
exports[`finance > 1211 > transactionDescription 1`] = `"deposit transaction at Trantow - Satterfield using card ending with ***(...4316) for SDG 928.52 in account ***19061627"`;

exports[`finance > 1211 > transactionType 1`] = `"invoice"`;

Expand Down Expand Up @@ -246,15 +246,15 @@ exports[`finance > 1337 > creditCardNumber > with issuer option 1`] = `"45122540

exports[`finance > 1337 > currency 1`] = `
{
"code": "FJD",
"name": "Fiji Dollar",
"symbol": "$",
"code": "ETB",
"name": "Ethiopian Birr",
"symbol": "",
}
`;

exports[`finance > 1337 > currencyCode 1`] = `"FJD"`;
exports[`finance > 1337 > currencyCode 1`] = `"ETB"`;

exports[`finance > 1337 > currencyName 1`] = `"Fiji Dollar"`;
exports[`finance > 1337 > currencyName 1`] = `"Ethiopian Birr"`;

exports[`finance > 1337 > currencySymbol 1`] = `"$"`;

Expand Down Expand Up @@ -296,6 +296,6 @@ exports[`finance > 1337 > pin > with length option 1`] = `"2512254032"`;

exports[`finance > 1337 > routingNumber 1`] = `"251225401"`;

exports[`finance > 1337 > transactionDescription 1`] = `"withdrawal transaction at Cronin - Effertz using card ending with ***(...3927) for GTQ 262.02 in account ***54032552"`;
exports[`finance > 1337 > transactionDescription 1`] = `"withdrawal transaction at Cronin - Effertz using card ending with ***(...3927) for GIP 262.02 in account ***54032552"`;

exports[`finance > 1337 > transactionType 1`] = `"withdrawal"`;
2 changes: 1 addition & 1 deletion test/__snapshots__/random.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ exports[`random > 1211 > words > noArgs 1`] = `"invoice Cyclocross assail"`;

exports[`random > 1211 > words > with length 1`] = `"gah strictly Rustic assail Manager"`;

exports[`random > 1211 > words > with length range 1`] = `"invoice Cyclocross assail Manager New"`;
exports[`random > 1211 > words > with length range 1`] = `"invoice Cyclocross assail Manager Gourde"`;

exports[`random > 1337 > alpha > noArgs 1`] = `"n"`;

Expand Down

0 comments on commit e6f949b

Please sign in to comment.