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:
maziggy
2026-03-03 12:10:29 +01:00
parent e3ebe86b00
commit 23b2d97170
5 changed files with 7 additions and 4 deletions
@@ -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);
});
});
+2
View File
@@ -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;