RelativeYearMonthOptions
data class RelativeYearMonthOptions(val style: RelativeUnitStyle = RelativeUnitStyle.LONG, val allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet()) : RelativeUnitOptions, PolyglotLocalizerOptions<RelativeYearMonthLocalizer> (source)
Localization options for RelativeYearMonthLocalizer, YearMonth.localizeRelative, and YearMonth.localizeRelativeAsFlow.
Constructors
Link copied to clipboard
constructor(style: RelativeUnitStyle = RelativeUnitStyle.LONG, allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet())
Properties
Functions
Link copied to clipboard
open override fun localizer(locale: PlatformLocale = getDefaultLocale()): RelativeYearMonthLocalizer
Returns a new instance of the PolyglotLocalizer of type L that this options belongs to.