mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 19:36:28 +02:00
Add Hungarian Forint (HUF) currency for filament cost tracking
Closes #579 — adds HUF with symbol "Ft" to the supported currencies list so Hungarian users can track filament costs in their local currency.
This commit is contained in:
@@ -37,7 +37,7 @@ describe('SUPPORTED_CURRENCIES', () => {
|
||||
expect(SUPPORTED_CURRENCIES.find((c) => c.code === 'INR')).toBeDefined();
|
||||
});
|
||||
|
||||
it('has 25 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(25);
|
||||
it('has 26 entries', () => {
|
||||
expect(SUPPORTED_CURRENCIES).toHaveLength(26);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -24,6 +24,7 @@ const CURRENCY_SYMBOLS: Record<string, string> = {
|
||||
ZAR: 'R',
|
||||
TRY: '₺',
|
||||
RUB: '₽',
|
||||
HUF: 'Ft',
|
||||
};
|
||||
|
||||
export function getCurrencySymbol(currencyCode: string): string {
|
||||
@@ -56,4 +57,5 @@ export const SUPPORTED_CURRENCIES = [
|
||||
{ code: 'ZAR', label: 'ZAR (R)' },
|
||||
{ code: 'TRY', label: 'TRY (₺)' },
|
||||
{ code: 'RUB', label: 'RUB (₽)' },
|
||||
{ code: 'HUF', label: 'HUF (Ft)' },
|
||||
] as const;
|
||||
|
||||
Reference in New Issue
Block a user