diff --git a/num2words/lang_EU.py b/num2words/lang_EU.py index 0ff74ab2..2b0235c2 100644 --- a/num2words/lang_EU.py +++ b/num2words/lang_EU.py @@ -47,7 +47,9 @@ class Num2Word_EU(Num2Word_Base): 'HUF': (('forint', 'forint'), ('fillér', 'fillér')), 'ISK': (('króna', 'krónur'), ('aur', 'aurar')), 'UZS': (('sum', 'sums'), ('tiyin', 'tiyins')), - 'SAR': (('saudi riyal', 'saudi riyals'), ('halalah', 'halalas')) + 'SAR': (('saudi riyal', 'saudi riyals'), ('halalah', 'halalas')), + 'JPY': (('yen', 'yen'), ('sen', 'sen'), + 'KRW': (('won', 'won'), ('jeon', 'jeon'), } @@ -65,7 +67,9 @@ class Num2Word_EU(Num2Word_Base): 'HUF': 'Hungarian', 'ISK': 'íslenskar', 'UZS': 'Uzbekistan', - 'SAR': 'Saudi' + 'SAR': 'Saudi', + 'JPY': 'Japanese', + 'KRW': 'Korean', } GIGA_SUFFIX = "illiard" diff --git a/tests/test_en.py b/tests/test_en.py index e763841c..4ab267c6 100644 --- a/tests/test_en.py +++ b/tests/test_en.py @@ -137,6 +137,18 @@ def test_to_currency(self): "two thousand sums and zero tiyins" ) + self.assertEqual( + num2words('2000.00', lang='en', to='currency', separator=' and', + cents=True, currency='JPY'), + "two thousand yen and zero sen" + ) + + self.assertEqual( + num2words('2000.00', lang='en', to='currency', separator=' and', + cents=True, currency='KRW'), + "two thousand won and zero jeon" + ) + def test_to_year(self): # issue 141 # "e2 e2"