Package-level declarations
Functions
Link copied to clipboard
fun <T, R, LOCALIZER : PolyglotReferenceValueLocalizer<T, R>> LOCALIZER.localize(value: T, clock: ClockWrapper = SYSTEM_CLOCK.collectAsStateWithLifecycle().value, timeZone: TimeZone = SYSTEM_TIMEZONE.collectAsStateWithLifecycle().value, maxTick: Duration? = null): State<R>
Utility function that collects the values from this LOCALIZER in a lifecycle-aware manner.
Link copied to clipboard
fun <OPTIONS : PolyglotLocalizerOptions<LOCALIZER>, LOCALIZER : PolyglotLocalizer> rememberLocalizer(options: OPTIONS): LOCALIZER
Remembers the localizer from the given options.
fun <OPTIONS : PolyglotLocalizerOptions<OPTIONS_LOCALIZER>, OPTIONS_LOCALIZER : PolyglotLocalizer, LOCALIZER : PolyglotLocalizer> rememberLocalizer(options: OPTIONS, vararg keys: Any?, localizerFactory: (OPTIONS_LOCALIZER) -> LOCALIZER): LOCALIZER
Remembers the localizer computed from the given options, passed to localizerFactory and returned by it.