Humanizer icon indicating copy to clipboard operation
Humanizer copied to clipboard

Grammatical Cases for TimeSpan

Open JFBM opened this issue 7 years ago • 2 comments

For this issue assume the CultureInfo to be "de-DE"

1.Weeks().Humanize() returns "Eine Woche".

This however is (for german) only one of multiple cases that I want as output. Sometimes I need different grammatical cases:

  • in einer Woche (A point of time one week away)
  • eine Woche (literally one week)
  • eines Tages [werden wir etwas tun] (someday [we will do something])

I assume that other languages may also have this problem.

Could you please add the possibility to add a GrammaticalCase to the function call to receive a cased result, or provide a different method?

JFBM avatar Feb 02 '18 14:02 JFBM

Did you find a solution?

niels-heinemann avatar Sep 10 '19 10:09 niels-heinemann

@JFBM the best way to move forward would be to submit a pull request.

hazzik avatar Feb 27 '24 04:02 hazzik