feat(currencies): add Nigerian Naira (NGN)

This commit is contained in:
Víctor Falcón 2026-07-04 21:04:06 +02:00
parent 79b8d27ece
commit ec62f881b4
4 changed files with 18 additions and 0 deletions

View File

@ -152,5 +152,11 @@ return [
'allows_primary' => true,
'allows_account' => true,
],
[
'code' => 'NGN',
'name' => 'Nigerian Naira',
'allows_primary' => true,
'allows_account' => true,
],
],
];

View File

@ -1545,6 +1545,7 @@
"Syncing transactions and balances…": "Sincronizando transacciones y balances…",
"System": "Sistema",
"Serbian Dinar": "Dinar Serbio",
"Nigerian Naira": "Naira Nigeriano",
"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

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

View File

@ -0,0 +1,10 @@
<?php
use App\Services\CurrencyOptions;
test('exposes Nigerian Naira as a primary and account currency', function () {
$options = app(CurrencyOptions::class);
expect($options->primaryCodes())->toContain('NGN')
->and($options->accountCodes())->toContain('NGN');
});