Skip to content

Commit

Permalink
Fix German time frames (#922)
Browse files Browse the repository at this point in the history
The rules for German timeframes for only_distance=True where incomplete.
  • Loading branch information
weddige authored Feb 23, 2021
1 parent 87cd4a9 commit f15a7ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arrow/locales.py
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ class GermanBaseLocale(Locale):

timeframes = {
"now": "gerade eben",
"second": "eine Sekunde",
"second": "einer Sekunde",
"seconds": "{0} Sekunden",
"minute": "einer Minute",
"minutes": "{0} Minuten",
Expand All @@ -1824,12 +1824,16 @@ class GermanBaseLocale(Locale):
}

timeframes_only_distance = timeframes.copy()
timeframes_only_distance["second"] = "eine Sekunde"
timeframes_only_distance["minute"] = "eine Minute"
timeframes_only_distance["hour"] = "eine Stunde"
timeframes_only_distance["day"] = "ein Tag"
timeframes_only_distance["days"] = "{0} Tage"
timeframes_only_distance["week"] = "eine Woche"
timeframes_only_distance["month"] = "ein Monat"
timeframes_only_distance["months"] = "{0} Monate"
timeframes_only_distance["year"] = "ein Jahr"
timeframes_only_distance["years"] = "{0} Jahre"

month_names = [
"",
Expand Down

0 comments on commit f15a7ae

Please sign in to comment.