Closed petrus-jvrensburg closed 9 months ago
@petrus-jvrensburg, this appears fixed (although I don't recall doing the work for this) on the current version:
iex> {:ok, duration} = Cldr.Calendar.Duration.new(~D[2025-01-01], ~D[2025-12-31])
iex> Cldr.Calendar.Duration.to_string!(duration, locale: "de-DE")
"11 Monate und 30 Tage"
I will close as fixed, but please reopen if it appears unresolved for you.
I'm able to localise relative DateTimes, but not Calendar Durations. This is my code in a livebook cell:
The output is