Skip to content

Commit

Permalink
Add Armenian locale
Browse files Browse the repository at this point in the history
  • Loading branch information
ElahehAx committed Jun 2, 2022
1 parent de1c5bd commit 3fa1b92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -6325,7 +6325,7 @@ class ArmenianLocale(Locale):
names = ["hy", "hy-am"]
past = "{0} առաջ"
future = "{0}ից"
and_word = "Եվ"
and_word = "Եվ" # Yev

timeframes = {
"now": "հիմա",
Expand All @@ -6351,7 +6351,7 @@ class ArmenianLocale(Locale):
"AM": "Ամ",
"PM": "պ.մ.",
}

month_names = [
"",
"հունվար",
Expand Down Expand Up @@ -6383,7 +6383,7 @@ class ArmenianLocale(Locale):
"նոյեմբեր",
"դեկտեմբեր",
]

day_names = [
"",
"երկուշաբթի",
Expand All @@ -6393,7 +6393,7 @@ class ArmenianLocale(Locale):
"ուրբաթ",
"շաբաթ",
"կիրակի",
]
]

day_abbreviations = [
"",
Expand All @@ -6406,7 +6406,7 @@ class ArmenianLocale(Locale):
"կիր.",
]


class UzbekLocale(Locale):
names = ["uz", "uz-uz"]
past = "{0}dan avval"
Expand Down Expand Up @@ -6471,6 +6471,5 @@ class UzbekLocale(Locale):
"Shanba",
"Yakshanba",
]

day_abbreviations = ["", "Dush", "Sesh", "Chor", "Pay", "Jum", "Shan", "Yak"]

day_abbreviations = ["", "Dush", "Sesh", "Chor", "Pay", "Jum", "Shan", "Yak"]
4 changes: 2 additions & 2 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -3111,8 +3111,8 @@ def test_weekday(self):
dt = arrow.Arrow(2015, 4, 11, 17, 30, 00)
assert self.locale.day_name(dt.isoweekday()) == "շաբաթ"
assert self.locale.day_abbreviation(dt.isoweekday()) == "շաբ."


@pytest.mark.usefixtures("lang_locale")
class TestUzbekLocale:
def test_singles_mk(self):
Expand Down

0 comments on commit 3fa1b92

Please sign in to comment.