whisper-money/resources/js/utils
Víctor Falcón 899ea6a939
feat(currency): add NZD (New Zealand Dollar) (#504)
## What
Add New Zealand Dollar (NZD) as a supported currency.

## Compatibility
Conversion provider `@fawazahmed0/currency-api` covers NZD (standard ISO
4217). Conversion service lowercases codes and fetches `nzd.min.json` —
same path AUD uses. `exchange_rates` table stores rates as JSON, so any
3-letter code works. Validation rules and Inertia currency props
auto-derive from config via `CurrencyOptions`.

## Changes
- `config/currencies.php` — NZD entry (`allows_primary` +
`allows_account`)
- `resources/js/utils/currency.ts` — `NZ$` symbol
- `lang/es.json` — Spanish translation (name passes through `__()`)

## Tests
Currency + translation suites pass.
2026-06-08 09:18:17 +02:00
..
currency.test.ts fix: preserve cents in chart amounts (#270) 2026-04-10 15:41:24 +02:00
currency.ts feat(currency): add NZD (New Zealand Dollar) (#504) 2026-06-08 09:18:17 +02:00
date.ts fix(accounts): translate update button in edit account modal (#455) 2026-05-30 16:09:30 +02:00
i18n.ts feat: Spanish localization (#74) 2026-02-08 11:58:08 +01:00