feat(currencies): add Nigerian Naira (NGN)
This commit is contained in:
parent
79b8d27ece
commit
ec62f881b4
|
|
@ -152,5 +152,11 @@ return [
|
|||
'allows_primary' => true,
|
||||
'allows_account' => true,
|
||||
],
|
||||
[
|
||||
'code' => 'NGN',
|
||||
'name' => 'Nigerian Naira',
|
||||
'allows_primary' => true,
|
||||
'allows_account' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ export function getCurrencySymbol(currencyCode: string): string {
|
|||
JPY: '¥',
|
||||
NZD: 'NZ$',
|
||||
DOP: 'RD$',
|
||||
NGN: '₦',
|
||||
};
|
||||
return symbols[currencyCode] || currencyCode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
Loading…
Reference in New Issue