YearLocalizer
Localizer for years (Int).
Because kotlinx-datetime doesn't provide a standard type for a year, there is no extension function equivalent for one-off localizations.
Examples:
2026262026 AD2026 Anno Domini
actual class YearLocalizer : <ERROR CLASS> ERROR CLASS: Symbol not found for PolyglotDateTimeLocalizer<kotlin/Int>
Localizer for years (Int).
Because kotlinx-datetime doesn't provide a standard type for a year, there is no extension function equivalent for one-off localizations.
Examples:
2026262026 AD2026 Anno Domini
Localizer for years (Int).
Because kotlinx-datetime doesn't provide a standard type for a year, there is no extension function equivalent for one-off localizations.
Examples:
2026262026 AD2026 Anno Domini
Constructors
Link copied to clipboard
expect constructor(options: YearOptions = YearOptions(), locale: PlatformLocale = getDefaultLocale())