Open-source personal finance manager. Self-hosted, privacy-first.
feat: add Indonesian Rupiah (IDR) currency (#245)
Tássio Noronha0198c3fe7213
diff --git a/backend/app/api/currencies.py b/backend/app/api/currencies.pyindex 880ad422..23c9f570 100644--- a/backend/app/api/currencies.py+++ b/backend/app/api/currencies.py@@ -29,6 +29,7 @@ CURRENCY_META = {"HUF": {"symbol": "Ft", "name": "Hungarian Forint", "flag": "\U0001F1ED\U0001F1FA"},"RON": {"symbol": "lei", "name": "Romanian Leu", "flag": "\U0001F1F7\U0001F1F4"},"CRC": {"symbol": "₡", "name": "Costa Rican Colón", "flag": "\U0001F1E8\U0001F1F7"},+ "IDR": {"symbol": "Rp", "name": "Indonesian Rupiah", "flag": "\U0001F1EE\U0001F1E9"},}diff --git a/backend/app/core/config.py b/backend/app/core/config.pyindex f85859aa..2993c7e5 100644--- a/backend/app/core/config.py+++ b/backend/app/core/config.py@@ -41,7 +41,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" # 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" # comma-separated listfx_sync_mode: str = "on_demand" # "on_demand" or "scheduled"# Storagediff --git a/frontend/src/pages/register.tsx b/frontend/src/pages/register.tsxindex 96cbbd37..b0471ef6 100644--- a/frontend/src/pages/register.tsx+++ b/frontend/src/pages/register.tsx@@ -27,6 +27,7 @@ const currencies = [{ code: 'HUF', flag: '\u{1F1ED}\u{1F1FA}', symbol: 'Ft' },{ code: 'RON', flag: '\u{1F1F7}\u{1F1F4}', symbol: 'lei' },{ code: 'CRC', flag: '\u{1F1E8}\u{1F1F7}', symbol: '₡' },+ { code: 'IDR', flag: '\u{1F1EE}\u{1F1E9}', symbol: 'Rp' },] as constexport default function RegisterPage() {diff --git a/frontend/src/pages/setup.tsx b/frontend/src/pages/setup.tsxindex 40872d85..9b7cb45c 100644--- a/frontend/src/pages/setup.tsx+++ b/frontend/src/pages/setup.tsx@@ -156,6 +156,7 @@ export default function SetupPage() {{ code: 'HUF', flag: '\u{1F1ED}\u{1F1FA}', symbol: 'Ft' },{ code: 'RON', flag: '\u{1F1F7}\u{1F1F4}', symbol: 'lei' },{ code: 'CRC', flag: '\u{1F1E8}\u{1F1F7}', symbol: '₡' },+ { code: 'IDR', flag: '\u{1F1EE}\u{1F1E9}', symbol: 'Rp' },] as const).map(({ code, flag, symbol }) => (<buttonkey={code}