From 198d0262e23b5cc20678ab5fe972520fa552accc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Falco=CC=81n?= Date: Thu, 16 Jul 2026 16:19:31 +0200 Subject: [PATCH] feat(currencies): add Swedish Krona (SEK) Add SEK as a currency available for both user primary/display and individual account currencies. This is a config-driven change: CurrencyOptions reads config/currencies.php to feed validation, the Inertia dropdown props, and conversion. - config/currencies.php: SEK entry (allows_primary, allows_account) - lang/es.json, lang/fr.json: translated currency name - resources/js/utils/currency.ts: 'kr' short symbol --- config/currencies.php | 6 ++++++ lang/es.json | 1 + lang/fr.json | 1 + resources/js/utils/currency.ts | 1 + 4 files changed, 9 insertions(+) diff --git a/config/currencies.php b/config/currencies.php index d50d283f..577d6aa1 100644 --- a/config/currencies.php +++ b/config/currencies.php @@ -164,5 +164,11 @@ return [ 'allows_primary' => true, 'allows_account' => true, ], + [ + 'code' => 'SEK', + 'name' => 'Swedish Krona', + 'allows_primary' => true, + 'allows_account' => true, + ], ], ]; diff --git a/lang/es.json b/lang/es.json index 8facad96..59cf8fc3 100644 --- a/lang/es.json +++ b/lang/es.json @@ -1549,6 +1549,7 @@ "Serbian Dinar": "Dinar Serbio", "Nigerian Naira": "Naira Nigeriano", "Ghanaian Cedi": "Cedi ghanés", + "Swedish Krona": "Corona sueca", "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 136cf517..9796d3e0 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -1501,6 +1501,7 @@ "System": "Système", "Serbian Dinar": "Dinar Serbe", "Ghanaian Cedi": "Cedi ghanéen", + "Swedish Krona": "Couronne suédoise", "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", diff --git a/resources/js/utils/currency.ts b/resources/js/utils/currency.ts index 2ecb04d2..bb453881 100644 --- a/resources/js/utils/currency.ts +++ b/resources/js/utils/currency.ts @@ -26,6 +26,7 @@ export function getCurrencySymbol(currencyCode: string): string { NZD: 'NZ$', DOP: 'RD$', NGN: '₦', + SEK: 'kr', }; return symbols[currencyCode] || currencyCode; }