From 6821e1f6c2195ceff1595cfba9ecb13c9b121579 Mon Sep 17 00:00:00 2001 From: Karol Wnuk Date: Sat, 16 Sep 2023 17:30:18 +0200 Subject: [PATCH] Fix JPY in French language (#163) --- src/Legacy/Numbers/Words/Locale/Fr.php | 2 +- tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Legacy/Numbers/Words/Locale/Fr.php b/src/Legacy/Numbers/Words/Locale/Fr.php index eef3ca78..2cc73da7 100644 --- a/src/Legacy/Numbers/Words/Locale/Fr.php +++ b/src/Legacy/Numbers/Words/Locale/Fr.php @@ -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']], diff --git a/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php b/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php index 615633a8..d027dd41 100644 --- a/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php +++ b/tests/CurrencyTransformer/FrenchCurrencyTransformerTest.php @@ -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'],