mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
Add 14 additional currency options (KRW, SEK, NOK, DKK, PLN, BRL, TWD, SGD, NZD, MXN, CZK, THB, ZAR, TRY)
This commit is contained in:
@@ -37,7 +37,7 @@ describe('SUPPORTED_CURRENCIES', () => {
|
||||
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'INR')).toBeDefined();
|
||||
});
|
||||
|
||||
it('has 10 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(10);
|
||||
it('has 24 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(24);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -9,6 +9,20 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
|
||||
AUD: '$',
|
||||
INR: '₹',
|
||||
HKD: 'HK$',
|
||||
KRW: '₩',
|
||||
SEK: 'kr',
|
||||
NOK: 'kr',
|
||||
DKK: 'kr',
|
||||
PLN: 'zł',
|
||||
BRL: 'R$',
|
||||
TWD: 'NT$',
|
||||
SGD: 'S$',
|
||||
NZD: 'NZ$',
|
||||
MXN: 'MX$',
|
||||
CZK: 'Kč',
|
||||
THB: '฿',
|
||||
ZAR: 'R',
|
||||
TRY: '₺',
|
||||
};
|
||||
|
||||
export function getCurrencySymbol(currencyCode: string): string {
|
||||
@@ -26,4 +40,18 @@ export const SUPPORTED_CURRENCIES = [
|
||||
{ code: 'AUD', label: 'AUD ($)' },
|
||||
{ code: 'INR', label: 'INR (₹)' },
|
||||
{ code: 'HKD', label: 'HKD (HK$)' },
|
||||
{ code: 'KRW', label: 'KRW (₩)' },
|
||||
{ code: 'SEK', label: 'SEK (kr)' },
|
||||
{ code: 'NOK', label: 'NOK (kr)' },
|
||||
{ code: 'DKK', label: 'DKK (kr)' },
|
||||
{ code: 'PLN', label: 'PLN (zł)' },
|
||||
{ code: 'BRL', label: 'BRL (R$)' },
|
||||
{ code: 'TWD', label: 'TWD (NT$)' },
|
||||
{ code: 'SGD', label: 'SGD (S$)' },
|
||||
{ code: 'NZD', label: 'NZD (NZ$)' },
|
||||
{ code: 'MXN', label: 'MXN (MX$)' },
|
||||
{ code: 'CZK', label: 'CZK (Kč)' },
|
||||
{ code: 'THB', label: 'THB (฿)' },
|
||||
{ code: 'ZAR', label: 'ZAR (R)' },
|
||||
{ code: 'TRY', label: 'TRY (₺)' },
|
||||
] as const;
|
||||
|
||||
Reference in New Issue
Block a user