Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

feat(currency): add Philippine Peso (PHP) support (#366)

Tássio Noronha21ee5c60bc35
diff --git a/backend/app/api/currencies.py b/backend/app/api/currencies.py
index eb06b93f..946d2b61 100644
--- a/backend/app/api/currencies.py
+++ b/backend/app/api/currencies.py
@@ -33,6 +33,7 @@ CURRENCY_META = {
"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"},
+ "PHP": {"symbol": "₱", "name": "Philippine Peso", "flag": "\U0001F1F5\U0001F1ED"},
}
diff --git a/backend/app/core/config.py b/backend/app/core/config.py
index e8515875..e7b9d866 100644
--- a/backend/app/core/config.py
+++ b/backend/app/core/config.py
@@ -62,7 +62,7 @@ class Settings(BaseSettings):
# FX Rates
openexchangerates_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,GTQ" # 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,PHP" # comma-separated list
fx_sync_mode: str = "on_demand" # "on_demand" or "scheduled"
# Storage
diff --git a/frontend/src/components/currency-select.tsx b/frontend/src/components/currency-select.tsx
index acf489e1..2e896909 100644
--- a/frontend/src/components/currency-select.tsx
+++ b/frontend/src/components/currency-select.tsx
@@ -31,6 +31,7 @@ export const CURRENCIES = [
{ 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' },
+ { code: 'PHP', flag: '\u{1F1F5}\u{1F1ED}', symbol: '₱' },
] as const
interface CurrencySelectProps {
diff --git a/frontend/src/lib/format.ts b/frontend/src/lib/format.ts
index caa1a1ba..c2d911c1 100644
--- a/frontend/src/lib/format.ts
+++ b/frontend/src/lib/format.ts
@@ -58,6 +58,7 @@ const CURRENCY_LOCALE: Record<string, string> = {
DOP: 'es-DO',
RUB: 'ru-RU',
GTQ: 'es-GT',
+ PHP: 'en-PH',
}
/**