Skip to content

Commit

Permalink
Update lang_AR.py
Browse files Browse the repository at this point in the history
Add Libya Currency
  • Loading branch information
aedkymish authored Nov 27, 2024
1 parent 0df2a0e commit 1a14541
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions num2words/lang_AR.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
("قرش", "قرشان", "قروش", "قرش")]
CURRENCY_KWD = [("دينار", "ديناران", "دينارات", "ديناراً"),
("فلس", "فلسان", "فلس", "فلس")]
CURRENCY_LYD = [("دينار", "ديناران", "دينارات", "ديناراً"),
("درهم", "درهمان", "درهم", "درهم")]

ARABIC_ONES = [
"", "واحد", "اثنان", "ثلاثة", "أربعة", "خمسة", "ستة", "سبعة", "ثمانية",
Expand Down Expand Up @@ -358,6 +360,9 @@ def set_currency_prefer(self, currency):
elif currency == 'KWD':
self.currency_unit = CURRENCY_KWD[0]
self.currency_subunit = CURRENCY_KWD[1]
elif currency == 'LYD':
self.currency_unit = CURRENCY_LYD[0]
self.currency_subunit = CURRENCY_LYD[1]
else:
self.currency_unit = CURRENCY_SR[0]
self.currency_subunit = CURRENCY_SR[1]
Expand Down

0 comments on commit 1a14541

Please sign in to comment.