PolyglotReferenceValueLocalizer
A generic PolyglotLocalizer that accepts a value of type T and a Zoned<Instant> reference point, and returns a TickingValue of type R.
The TickingValue.nextTick represent the amount of time that the reference needs to advance by for the TickingValue.value to change, thus requiring a new call to localize with the same exact value but updated reference, assuming that the time moves forward linearly.
If you are using coroutines, a convenience localizeAsFlow is also provided.
Note that any class implementing this interface is not strictly required to return the same exact string for the same value in different platforms.
Inheritors
Functions
Returns a new PolyglotReferenceValueLocalizer that localizes the received value using this localizer, calls map, and returns whatever TickingValue the mapping function returns.
Fixes the value to localize and returns a TickingValueProvider using this PolyglotReferenceValueLocalizer as source for TickingValues.