Skip to content

Commit

Permalink
Hungarian Locale Update (arrow-py#1123)
Browse files Browse the repository at this point in the history
Co-authored-by: Karsa Zoltán <Zoltan Karsa>
  • Loading branch information
karsazoltan authored Aug 29, 2022
1 parent cb2ef42 commit 4eb070f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -3709,6 +3709,8 @@ class HungarianLocale(Locale):
"hours": {"past": "{0} órával", "future": "{0} óra"},
"day": {"past": "egy nappal", "future": "egy nap"},
"days": {"past": "{0} nappal", "future": "{0} nap"},
"week": {"past": "egy héttel", "future": "egy hét"},
"weeks": {"past": "{0} héttel", "future": "{0} hét"},
"month": {"past": "egy hónappal", "future": "egy hónap"},
"months": {"past": "{0} hónappal", "future": "{0} hónap"},
"year": {"past": "egy évvel", "future": "egy év"},
Expand Down
6 changes: 6 additions & 0 deletions tests/test_locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,12 @@ def test_format_timeframe(self):
assert self.locale._format_timeframe("days", -2) == "2 nappal"
assert self.locale._format_timeframe("days", 2) == "2 nap"

# Week(s)
assert self.locale._format_timeframe("week", -1) == "egy héttel"
assert self.locale._format_timeframe("week", 1) == "egy hét"
assert self.locale._format_timeframe("weeks", -2) == "2 héttel"
assert self.locale._format_timeframe("weeks", 2) == "2 hét"

# Month(s)
assert self.locale._format_timeframe("month", -1) == "egy hónappal"
assert self.locale._format_timeframe("month", 1) == "egy hónap"
Expand Down

0 comments on commit 4eb070f

Please sign in to comment.