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
This commit is contained in:
Víctor Falcón 2026-07-16 16:19:31 +02:00
parent a873582191
commit 198d0262e2
4 changed files with 9 additions and 0 deletions

View File

@ -164,5 +164,11 @@ return [
'allows_primary' => true,
'allows_account' => true,
],
[
'code' => 'SEK',
'name' => 'Swedish Krona',
'allows_primary' => true,
'allows_account' => true,
],
],
];

View File

@ -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",

View File

@ -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",

View File

@ -26,6 +26,7 @@ export function getCurrencySymbol(currencyCode: string): string {
NZD: 'NZ$',
DOP: 'RD$',
NGN: '₦',
SEK: 'kr',
};
return symbols[currencyCode] || currencyCode;
}