whisper-money/resources/js/utils
Víctor Falcón e5b493329a
feat(currencies): add Colombian and Dominican peso (#471)
## Summary

Adds **COP** (Colombian Peso) and **DOP** (Dominican Peso) to the
supported currency list for both accounts and user primary currency.

## Compatibility

Both are supported by the conversion API (fawazahmed0 currency-api):
- 1 USD = 3686.83 COP
- 1 USD = 58.74 DOP

No migration needed — `currency_code` columns are plain strings and
validation reads the whitelist from `config/currencies.php`.

## Changes

- `config/currencies.php` — add COP + DOP (primary + account)
- `resources/js/utils/currency.ts` — add `RD$` symbol for DOP
- `tests/Feature/Settings/AccountTest.php` — acceptance tests for both

## Testing

`php artisan test --filter="Colombian|Dominican"` → passing
2026-06-01 18:14:16 +02:00
..
currency.test.ts fix: preserve cents in chart amounts (#270) 2026-04-10 15:41:24 +02:00
currency.ts feat(currencies): add Colombian and Dominican peso (#471) 2026-06-01 18:14:16 +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