Skip to content

Commit

Permalink
Improve "second" and "day(s)" translation to Greek (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
pothitos authored Aug 27, 2024
1 parent 02e3b1b commit f77aa1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,14 +660,14 @@ class GreekLocale(Locale):

timeframes = {
"now": "τώρα",
"second": "ένα δεύτερο",
"second": "ένα δευτερόλεπτο",
"seconds": "{0} δευτερόλεπτα",
"minute": "ένα λεπτό",
"minutes": "{0} λεπτά",
"hour": "μία ώρα",
"hours": "{0} ώρες",
"day": "μία μέρα",
"days": "{0} μέρες",
"day": "μία ημέρα",
"days": "{0} ημέρες",
"week": "μία εβδομάδα",
"weeks": "{0} εβδομάδες",
"month": "ένα μήνα",
Expand Down
6 changes: 6 additions & 0 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -3189,3 +3189,9 @@ def test_format_relative_future(self):

def test_month_abbreviation(self):
assert self.locale.month_abbreviations[5] == "Μαΐ"

def test_format_timeframe(self):
assert self.locale._format_timeframe("second", 1) == "ένα δευτερόλεπτο"
assert self.locale._format_timeframe("seconds", 3) == "3 δευτερόλεπτα"
assert self.locale._format_timeframe("day", 1) == "μία ημέρα"
assert self.locale._format_timeframe("days", 6) == "6 ημέρες"

0 comments on commit f77aa1d

Please sign in to comment.