## What Adds **Swedish Krona (SEK)** as a currency available for both user primary/display currencies and individual account currencies (including bank accounts). ## Why Config-driven per `docs/adding-a-currency.md`. `App\Services\CurrencyOptions` reads `config/currencies.php` and feeds validation (`in:` rules), the Inertia dropdown props, and conversion — so a single config entry wires the whole feature. ## Changes - `config/currencies.php` — SEK entry (`allows_primary: true`, `allows_account: true`) - `lang/es.json` — `"Swedish Krona": "Corona sueca"` (enforced locale) - `lang/fr.json` — `"Swedish Krona": "Couronne suédoise"` (optional) - `resources/js/utils/currency.ts` — `SEK: 'kr'` short symbol ## Verification Confirmed the `@fawazahmed0/currency-api` provider covers `sek` at a sane rate (SEK→EUR ≈ 0.091 → EUR→SEK ≈ 11). ## Test ```bash php artisan test --compact tests/Feature/CurrencyConversionServiceTest.php tests/Feature/LocalizationTest.php ``` |
||
|---|---|---|
| .. | ||
| currency.test.ts | ||
| currency.ts | ||
| date.ts | ||
| i18n.ts | ||