From 782ec2f2e93ddb2939461a561730ee12a6f75fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Fri, 17 Jul 2026 13:46:21 +0200 Subject: [PATCH] feat(currencies): add Hong Kong Dollar (HKD) (#688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds HKD (Hong Kong Dollar) as a selectable currency for both users (primary/display) and individual accounts, following `docs/adding-a-currency.md`. ## Changes - `config/currencies.php` — new entry with `allows_primary => true`, `allows_account => true` - `lang/es.json` — Spanish name ("Dólar de Hong Kong") - `lang/fr.json` — French name ("Dollar de Hong Kong") ## Verification - Provider covers `hkd` at a sane rate (EUR→HKD ≈ 8.99) via `@fawazahmed0/currency-api`. - No custom symbol added — `Intl.NumberFormat` renders "HK$" on its own (symbol map is optional per the doc). - Validation, dropdowns, and conversion all derive from config automatically; no code changes needed. --- config/currencies.php | 6 ++++++ lang/es.json | 1 + lang/fr.json | 1 + 3 files changed, 8 insertions(+) diff --git a/config/currencies.php b/config/currencies.php index 17097889..b7a7a821 100644 --- a/config/currencies.php +++ b/config/currencies.php @@ -176,5 +176,11 @@ return [ 'allows_primary' => true, 'allows_account' => true, ], + [ + 'code' => 'HKD', + 'name' => 'Hong Kong Dollar', + 'allows_primary' => true, + 'allows_account' => true, + ], ], ]; diff --git a/lang/es.json b/lang/es.json index 95482af8..d3bd1699 100644 --- a/lang/es.json +++ b/lang/es.json @@ -1551,6 +1551,7 @@ "Ghanaian Cedi": "Cedi ghanés", "Swedish Krona": "Corona sueca", "Guatemalan Quetzal": "Quetzal guatemalteco", + "Hong Kong Dollar": "Dólar de Hong Kong", "Take control of your finances with privacy-first money tracking. Let's set up your account in just a few minutes.": "Toma el control de tus finanzas con un seguimiento privado de tu dinero. Vamos a configurar tu cuenta en pocos minutos.", "Tap": "Toca", "Tap the": "Toca el botón", diff --git a/lang/fr.json b/lang/fr.json index 9dac257d..ee2b18d5 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -1503,6 +1503,7 @@ "Ghanaian Cedi": "Cedi ghanéen", "Swedish Krona": "Couronne suédoise", "Guatemalan Quetzal": "Quetzal guatémaltèque", + "Hong Kong Dollar": "Dollar de Hong Kong", "Take control of your finances with privacy-first money tracking. Let's set up your account in just a few minutes.": "Prenez le contrôle de vos finances grâce au suivi de l'argent privé. Nous créerons votre compte dans quelques minutes.", "Tap": "Touche", "Tap the": "Touchez le bouton",