gingko / time-distance / 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

Language Functions

en : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

English version.

Config is a type alias for {withAffix : Bool}

es : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

Spanish version.

Config is a type alias for {withAffix : Bool}

fr : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

French version.

Config is a type alias for {withAffix : Bool}

sv : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

Swedish version.

Config is a type alias for {withAffix : Bool}

nl : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

Dutch version.

Config is a type alias for {withAffix : Bool}

it : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

Italian version.

Config is a type alias for {withAffix : Bool}

pt : Time.Distance.Types.Config -> Time.Distance.Types.Tense -> Time.Distance.Types.DistanceId -> String

Portuguese version.

Config is a type alias for {withAffix : Bool}