From 5f6eaeaed336244647befee2a2741867cb9a05f0 Mon Sep 17 00:00:00 2001 From: Mohammed Fawzi <30725615+mf0wzi@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:32:11 +0300 Subject: [PATCH] Update lang_AR.py Adding Yemen Rial and US Dollar's in Arabic --- num2words/lang_AR.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/num2words/lang_AR.py b/num2words/lang_AR.py index 7195dd47..f77421f3 100644 --- a/num2words/lang_AR.py +++ b/num2words/lang_AR.py @@ -31,6 +31,11 @@ ("قرش", "قرشان", "قروش", "قرش")] CURRENCY_KWD = [("دينار", "ديناران", "دينارات", "ديناراً"), ("فلس", "فلسان", "فلس", "فلس")] +CURRENCY_YER = [("ريال", "ريالان", "ريالات", "ريالاً"), + ("فلس", "فلسان", "فلس", "فلس")] +CURRENCY_USD = [("دولار", "دولارين", "دولارات", "دولاراً"), + ("سنت", "سنتان", "سنتا", "سنتاٌ")] + ARABIC_ONES = [ "", "واحد", "اثنان", "ثلاثة", "أربعة", "خمسة", "ستة", "سبعة", "ثمانية", @@ -358,6 +363,12 @@ def set_currency_prefer(self, currency): elif currency == 'KWD': self.currency_unit = CURRENCY_KWD[0] self.currency_subunit = CURRENCY_KWD[1] + elif currency == 'YER': + self.currency_unit = CURRENCY_YER[0] + self.currency_subunit = CURRENCY_YER[1] + elif currency == 'USD': + self.currency_unit = CURRENCY_USD[0] + self.currency_subunit = CURRENCY_USD[1] else: self.currency_unit = CURRENCY_SR[0] self.currency_subunit = CURRENCY_SR[1]