Skip to content

Commit e6f949b

Browse files
author
Matt Mayer
authored
fix(currency): modernise currency list for 2023 (#1880)
1 parent 59157a4 commit e6f949b

3 files changed

Lines changed: 27 additions & 107 deletions

File tree

src/locales/en/finance/currency.ts

Lines changed: 7 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ export default [
159159
code: 'CUP',
160160
symbol: '₱',
161161
},
162-
{
163-
name: 'Cuban Peso Convertible',
164-
code: 'CUC',
165-
symbol: '$',
166-
},
167162
{
168163
name: 'Cape Verde Escudo',
169164
code: 'CVE',
@@ -194,11 +189,6 @@ export default [
194189
code: 'DZD',
195190
symbol: '',
196191
},
197-
{
198-
name: 'Kroon',
199-
code: 'EEK',
200-
symbol: '',
201-
},
202192
{
203193
name: 'Egyptian Pound',
204194
code: 'EGP',
@@ -279,11 +269,6 @@ export default [
279269
code: 'HNL',
280270
symbol: 'L',
281271
},
282-
{
283-
name: 'Croatian Kuna',
284-
code: 'HRK',
285-
symbol: 'kn',
286-
},
287272
{
288273
name: 'Gourde',
289274
code: 'HTG',
@@ -409,16 +394,6 @@ export default [
409394
code: 'LRD',
410395
symbol: '$',
411396
},
412-
{
413-
name: 'Lithuanian Litas',
414-
code: 'LTL',
415-
symbol: 'Lt',
416-
},
417-
{
418-
name: 'Latvian Lats',
419-
code: 'LVL',
420-
symbol: 'Ls',
421-
},
422397
{
423398
name: 'Libyan Dinar',
424399
code: 'LYD',
@@ -461,7 +436,7 @@ export default [
461436
},
462437
{
463438
name: 'Ouguiya',
464-
code: 'MRO',
439+
code: 'MRU',
465440
symbol: '',
466441
},
467442
{
@@ -621,7 +596,7 @@ export default [
621596
},
622597
{
623598
name: 'Leone',
624-
code: 'SLL',
599+
code: 'SLE',
625600
symbol: '',
626601
},
627602
{
@@ -634,16 +609,16 @@ export default [
634609
code: 'SRD',
635610
symbol: '$',
636611
},
612+
{
613+
name: 'South Sudanese pound',
614+
code: 'SSP',
615+
symbol: '',
616+
},
637617
{
638618
name: 'Dobra',
639619
code: 'STN',
640620
symbol: 'Db',
641621
},
642-
{
643-
name: 'El Salvador Colon',
644-
code: 'SVC',
645-
symbol: '₡',
646-
},
647622
{
648623
name: 'Syrian Pound',
649624
code: 'SYP',
@@ -749,76 +724,21 @@ export default [
749724
code: 'XAF',
750725
symbol: '',
751726
},
752-
{
753-
name: 'Silver',
754-
code: 'XAG',
755-
symbol: '',
756-
},
757-
{
758-
name: 'Gold',
759-
code: 'XAU',
760-
symbol: '',
761-
},
762-
{
763-
name: 'Bond Markets Units European Composite Unit (EURCO)',
764-
code: 'XBA',
765-
symbol: '',
766-
},
767-
{
768-
name: 'European Monetary Unit (E.M.U.-6)',
769-
code: 'XBB',
770-
symbol: '',
771-
},
772-
{
773-
name: 'European Unit of Account 9(E.U.A.-9)',
774-
code: 'XBC',
775-
symbol: '',
776-
},
777-
{
778-
name: 'European Unit of Account 17(E.U.A.-17)',
779-
code: 'XBD',
780-
symbol: '',
781-
},
782727
{
783728
name: 'East Caribbean Dollar',
784729
code: 'XCD',
785730
symbol: '$',
786731
},
787-
{
788-
name: 'SDR',
789-
code: 'XDR',
790-
symbol: '',
791-
},
792-
{
793-
name: 'UIC-Franc',
794-
code: 'XFU',
795-
symbol: '',
796-
},
797732
{
798733
name: 'CFA Franc BCEAO',
799734
code: 'XOF',
800735
symbol: '',
801736
},
802-
{
803-
name: 'Palladium',
804-
code: 'XPD',
805-
symbol: '',
806-
},
807737
{
808738
name: 'CFP Franc',
809739
code: 'XPF',
810740
symbol: '',
811741
},
812-
{
813-
name: 'Platinum',
814-
code: 'XPT',
815-
symbol: '',
816-
},
817-
{
818-
name: 'Codes specifically reserved for testing purposes',
819-
code: 'XTS',
820-
symbol: '',
821-
},
822742
{
823743
name: 'Yemeni Rial',
824744
code: 'YER',

test/__snapshots__/finance.spec.ts.snap

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ exports[`finance > 42 > creditCardNumber > with issuer option 1`] = `"4791775514
4646

4747
exports[`finance > 42 > currency 1`] = `
4848
{
49-
"code": "IQD",
50-
"name": "Iraqi Dinar",
51-
"symbol": "",
49+
"code": "ILS",
50+
"name": "New Israeli Sheqel",
51+
"symbol": "",
5252
}
5353
`;
5454

55-
exports[`finance > 42 > currencyCode 1`] = `"IQD"`;
55+
exports[`finance > 42 > currencyCode 1`] = `"ILS"`;
5656

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

59-
exports[`finance > 42 > currencySymbol 1`] = `""`;
59+
exports[`finance > 42 > currencySymbol 1`] = `""`;
6060

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

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

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

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

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

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

147147
exports[`finance > 1211 > currency 1`] = `
148148
{
149-
"code": "XDR",
150-
"name": "SDR",
149+
"code": "VUV",
150+
"name": "Vatu",
151151
"symbol": "",
152152
}
153153
`;
154154

155-
exports[`finance > 1211 > currencyCode 1`] = `"XDR"`;
155+
exports[`finance > 1211 > currencyCode 1`] = `"VUV"`;
156156

157-
exports[`finance > 1211 > currencyName 1`] = `"SDR"`;
157+
exports[`finance > 1211 > currencyName 1`] = `"Vatu"`;
158158

159-
exports[`finance > 1211 > currencySymbol 1`] = `""`;
159+
exports[`finance > 1211 > currencySymbol 1`] = `""`;
160160

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

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

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

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

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

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

247247
exports[`finance > 1337 > currency 1`] = `
248248
{
249-
"code": "FJD",
250-
"name": "Fiji Dollar",
251-
"symbol": "$",
249+
"code": "ETB",
250+
"name": "Ethiopian Birr",
251+
"symbol": "",
252252
}
253253
`;
254254

255-
exports[`finance > 1337 > currencyCode 1`] = `"FJD"`;
255+
exports[`finance > 1337 > currencyCode 1`] = `"ETB"`;
256256

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

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

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

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

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

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

test/__snapshots__/random.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ exports[`random > 1211 > words > noArgs 1`] = `"invoice Cyclocross assail"`;
4242

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

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

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

0 commit comments

Comments
 (0)