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.
This commit is contained in:
Víctor Falcón 2026-06-08 09:18:17 +02:00 committed by GitHub
parent 4b90bcfc96
commit 899ea6a939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,12 @@ return [
'allows_primary' => true,
'allows_account' => true,
],
[
'code' => 'NZD',
'name' => 'New Zealand Dollar',
'allows_primary' => true,
'allows_account' => true,
],
[
'code' => 'CNY',
'name' => 'Chinese Yuan',

View File

@ -976,6 +976,7 @@
"Neutral": "Neutro",
"Never": "Nunca",
"New": "Nuevo",
"New Zealand Dollar": "Dólar neozelandés",
"New password": "Nueva contraseña",
"New transactions from connected banks": "Nuevas transacciones de bancos conectados",
"New transactions synced, :name!": "¡Nuevas transacciones sincronizadas, :name!",

View File

@ -23,6 +23,7 @@ export function getCurrencySymbol(currencyCode: string): string {
EUR: '€',
GBP: '£',
JPY: '¥',
NZD: 'NZ$',
DOP: 'RD$',
};
return symbols[currencyCode] || currencyCode;