DynamicZonedYearLocalizer
Localizes a Zoned year (Zoned<Int>) dynamically (either absolute or relative to a Zoned<Instant> reference point).
This behaves identically to DynamicYearLocalizer, but it also adds a TimeZone in the mix (only in the absolute case).
This class chooses between formatting with a RelativeYearLocalizer (if the difference is within the configured range), or falls back to absolute formatting via ZonedYearLocalizer. Note that in case of relative localization, the relative value will always be calculated using the reference's time zone and behave exactly the same as RelativeYearLocalizer.
As this class implements PolyglotReferenceValueLocalizer, it allows to use localizeAsFlow.
Because kotlinx-datetime doesn't provide a standard type for a year, there is no extension function equivalent for one-off localizations.
Examples:
last year1 year agoin 5y2026, Los Angeles Time2026 AD, Pacific Time