gingko/time-distance/2.0.0

NOTE: the latest version is 2.4.0

Time.Distance.I18n

Language functions to take DistanceId and other settings, and return a localized string

If you'd like to add more languages, pasting this into a translation app would be a start:

"in 10 minutes"


"10 minutes ago"


less than 1 second


less than X seconds


half a minute


less than a minute


less than X minutes


1 minute


X minutes


about 1 hour


about X hours


1 day


X days


about 1 month


about X months


1 month


X months


about 1 year


about X years


over 1 year


over X years


almost 1 year


almost X years
en : Config -> Tense -> DistanceId -> String

English version.

Locale is a type alias for the function: `{withAffix : Bool} -> Tense -> DistanceId -> String

es : Config -> Tense -> DistanceId -> String

Spanish version.

Locale is a type alias for the function: `{withAffix : Bool} -> Tense -> DistanceId -> String

fr : Config -> Tense -> DistanceId -> String

French version.

Locale is a type alias for the function: `{withAffix : Bool} -> Tense -> DistanceId -> String

sv : Config -> Tense -> DistanceId -> String

Swedish version.

Locale is a type alias for the function: `{withAffix : Bool} -> Tense -> DistanceId -> String