Open-source personal finance manager. Self-hosted, privacy-first.
feat(currency): add Guatemalan Quetzal (GTQ) support (#365)
Tássio Noronha19d26c1c845f
diff --git a/backend/app/api/currencies.py b/backend/app/api/currencies.pyindex 5c4c0966..eb06b93f 100644--- a/backend/app/api/currencies.py+++ b/backend/app/api/currencies.py@@ -32,6 +32,7 @@ CURRENCY_META = {"IDR": {"symbol": "Rp", "name": "Indonesian Rupiah", "flag": "\U0001F1EE\U0001F1E9"},"DOP": {"symbol": "RD$", "name": "Peso Dominicano", "flag": "\U0001F1E9\U0001F1F4"},"RUB": {"symbol": "₽", "name": "Russian Ruble", "flag": "\U0001F1F7\U0001F1FA"},+ "GTQ": {"symbol": "Q", "name": "Guatemalan Quetzal", "flag": "\U0001F1EC\U0001F1F9"},}diff --git a/backend/app/core/config.py b/backend/app/core/config.pyindex c8ba6882..e8515875 100644--- a/backend/app/core/config.py+++ b/backend/app/core/config.py@@ -62,7 +62,7 @@ class Settings(BaseSettings):# FX Ratesopenexchangerates_app_id: str = ""- supported_currencies: str = "USD,EUR,GBP,BRL,CAD,AUD,CHF,ARS,JPY,MXN,INR,SEK,DKK,NOK,PLN,CZK,HUF,RON,CRC,IDR,COP,CLP,DOP,RUB" # comma-separated list+ supported_currencies: str = "USD,EUR,GBP,BRL,CAD,AUD,CHF,ARS,JPY,MXN,INR,SEK,DKK,NOK,PLN,CZK,HUF,RON,CRC,IDR,COP,CLP,DOP,RUB,GTQ" # comma-separated listfx_sync_mode: str = "on_demand" # "on_demand" or "scheduled"# Storagediff --git a/frontend/src/components/currency-select.tsx b/frontend/src/components/currency-select.tsxindex 863056e6..acf489e1 100644--- a/frontend/src/components/currency-select.tsx+++ b/frontend/src/components/currency-select.tsx@@ -30,6 +30,7 @@ export const CURRENCIES = [{ code: 'CLP', flag: '\u{1F1E8}\u{1F1F1}', symbol: '$' },{ code: 'DOP', flag: '\u{1F1E9}\u{1F1F4}', symbol: 'RD$' },{ code: 'RUB', flag: '\u{1F1F7}\u{1F1FA}', symbol: '₽' },+ { code: 'GTQ', flag: '\u{1F1EC}\u{1F1F9}', symbol: 'Q' },] as constinterface CurrencySelectProps {diff --git a/frontend/src/lib/format.ts b/frontend/src/lib/format.tsindex 57eddd64..caa1a1ba 100644--- a/frontend/src/lib/format.ts+++ b/frontend/src/lib/format.ts@@ -57,6 +57,7 @@ const CURRENCY_LOCALE: Record<string, string> = {IDR: 'id-ID',DOP: 'es-DO',RUB: 'ru-RU',+ GTQ: 'es-GT',}/**