Open-source personal finance manager. Self-hosted, privacy-first.
feat(currency): add Russian Ruble (RUB) support (#355)
Nikita Aspaevfa8a42a8e39e
diff --git a/backend/app/api/currencies.py b/backend/app/api/currencies.pyindex 047257a3..5c4c0966 100644--- a/backend/app/api/currencies.py+++ b/backend/app/api/currencies.py@@ -31,6 +31,7 @@ CURRENCY_META = {"CRC": {"symbol": "₡", "name": "Costa Rican Colón", "flag": "\U0001F1E8\U0001F1F7"},"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"},}diff --git a/backend/app/core/config.py b/backend/app/core/config.pyindex 37056dd1..c8ba6882 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" # 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" # 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 c6fd3d9f..863056e6 100644--- a/frontend/src/components/currency-select.tsx+++ b/frontend/src/components/currency-select.tsx@@ -29,6 +29,7 @@ export const CURRENCIES = [{ code: 'COP', flag: '\u{1F1E8}\u{1F1F4}', symbol: '$' },{ 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: '₽' },] as constinterface CurrencySelectProps {diff --git a/frontend/src/lib/format.ts b/frontend/src/lib/format.tsindex bfdbedc4..57eddd64 100644--- a/frontend/src/lib/format.ts+++ b/frontend/src/lib/format.ts@@ -56,6 +56,7 @@ const CURRENCY_LOCALE: Record<string, string> = {CRC: 'es-CR',IDR: 'id-ID',DOP: 'es-DO',+ RUB: 'ru-RU',}/**