Package-level declarations

Types

Link copied to clipboard

Localizes a LocalDate dynamically (either absolute or relative to a Zoned<Instant> reference point).

Link copied to clipboard

Localization options for DynamicLocalDateLocalizer.

Link copied to clipboard
class DynamicYearLocalizer(options: DynamicYearOptions = DynamicYearOptions(), locale: PlatformLocale = getDefaultLocale()) : PolyglotReferenceValueLocalizer<Int>

Localizes a year dynamically (either absolute or relative to a Zoned<Instant> reference point).

Link copied to clipboard

Localizes a YearMonth dynamically (either absolute or relative to a Zoned<Instant> reference point).

Link copied to clipboard
data class DynamicYearMonthOptions(val relativeOptions: RelativeYearMonthOptions = RelativeYearMonthOptions(), val absoluteOptions: YearMonthOptions, val relativeDiffRange: IntRange = -1..1)

Localization options for DynamicYearMonthLocalizer.

Link copied to clipboard
data class DynamicYearOptions(val relativeOptions: RelativeYearOptions = RelativeYearOptions(), val absoluteOptions: YearOptions = YearOptions(), val relativeDiffRange: IntRange = -1..1)

Localization options for DynamicYearLocalizer.

Functions

Link copied to clipboard
fun LocalDate.localizeDynamic(reference: Zoned<Instant>, options: DynamicLocalDateOptions, locale: PlatformLocale = getDefaultLocale()): TickingValue<String>

Localizes this LocalDate dynamically (either absolute or relative to a Zoned<Instant> reference point) with the given options in the given locale.

fun LocalDate.localizeDynamic(options: DynamicLocalDateOptions, locale: PlatformLocale = getDefaultLocale(), clock: Clock = Clock.System): TickingValue<String>

Localizes this LocalDate dynamically (either absolute or relative to clock) with the given options in the given locale.

fun YearMonth.localizeDynamic(reference: Zoned<Instant>, options: DynamicYearMonthOptions, locale: PlatformLocale = getDefaultLocale()): TickingValue<String>

Localizes this YearMonth dynamically (either absolute or relative to a Zoned<Instant> reference point) with the given options in the given locale.

fun YearMonth.localizeDynamic(options: DynamicYearMonthOptions, locale: PlatformLocale = getDefaultLocale(), clock: Clock = Clock.System): TickingValue<String>

Localizes this YearMonth dynamically (either absolute or relative to clock) with the given options in the given locale.

Link copied to clipboard
fun LocalDate.localizeDynamicAsFlow(options: DynamicLocalDateOptions, locale: PlatformLocale = getDefaultLocale(), clock: Clock = Clock.System): Flow<String>

Localizes this LocalDate dynamically (either absolute or relative to clock) with the given options in the given locale, returning a Flow that automatically receives new localizations as they are needed.

fun YearMonth.localizeDynamicAsFlow(options: DynamicYearMonthOptions, locale: PlatformLocale = getDefaultLocale(), clock: Clock = Clock.System): Flow<String>

Localizes this YearMonth dynamically (either absolute or relative to clock) with the given options in the given locale, returning a Flow that automatically receives new localizations as they are needed.