Skip to content

Commit

Permalink
Hungarian Locale Update (#1123)
Browse files Browse the repository at this point in the history
Co-authored-by: Karsa Zolt谩n <Zoltan Karsa>
  • Loading branch information
karsazoltan committed 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.