Skip to content

Commit

Permalink
Fix JPY in French language (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwn authored Sep 16, 2023
1 parent ea80816 commit 6821e1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Legacy/Numbers/Words/Locale/Fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Fr extends Words
'DZD' => [['dinar'], ['centime']],
'EUR' => [['euro'], ['centime']],
'GBP' => [['pound', 'pounds'], ['penny', 'pence']],
'JPY' => [['yen', ['sen']]],
'JPY' => [['yen'], ['sen']],
'LYD' => [['dinar'], ['centime']],
'MAD' => [['dirham'], ['centime']],
'MRO' => [['ouguiya'], ['khoums']],
Expand Down
3 changes: 3 additions & 0 deletions tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public function providerItConvertsMoneyAmountToWords(): array
{
return [
[100, 'EUR', 'un euro'],
[100, 'JPY', 'un yen'],
[101, 'JPY', 'un yen et un sen'],
[115, 'JPY', 'un yen et quinze sens'],
[200, 'EUR', 'deux euros'],
[235715, 'EUR', 'deux mille trois cent cinquante-sept euros et quinze centimes'],
[1522501, 'EUR', 'quinze mille deux cent vingt-cinq euros et un centime'],
Expand Down

0 comments on commit 6821e1f

Please sign in to comment.