RelativeYearOptions

data class RelativeYearOptions(val style: RelativeUnitStyle = RelativeUnitStyle.LONG, val allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet()) : RelativeUnitOptions(source)

Localization options for RelativeYearLocalizer.

Constructors

Link copied to clipboard
constructor(style: RelativeUnitStyle = RelativeUnitStyle.LONG, allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet())

Properties

Link copied to clipboard

list of allowed relative directions to use for word style localization (e.g. last year'). Pass an empty list to force numeric localization (e.g. 1 year ago`). All directions are enabled by default.

Link copied to clipboard
open override val style: RelativeUnitStyle

the style of the year