Skip to content

Commit

Permalink
Update lang_AR.py
Browse files Browse the repository at this point in the history
Adding Yemen Rial and US Dollar's in Arabic
  • Loading branch information
mf0wzi authored Feb 29, 2024
1 parent 974f7a8 commit 5f6eaea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions num2words/lang_AR.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
("قرش", "قرشان", "قروش", "قرش")]
CURRENCY_KWD = [("دينار", "ديناران", "دينارات", "ديناراً"),
("فلس", "فلسان", "فلس", "فلس")]
CURRENCY_YER = [("ريال", "ريالان", "ريالات", "ريالاً"),
("فلس", "فلسان", "فلس", "فلس")]
CURRENCY_USD = [("دولار", "دولارين", "دولارات", "دولاراً"),
("سنت", "سنتان", "سنتا", "سنتاٌ")]


ARABIC_ONES = [
"", "واحد", "اثنان", "ثلاثة", "أربعة", "خمسة", "ستة", "سبعة", "ثمانية",
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 5f6eaea

Please sign in to comment.