YearMonthLocalizer

Localizer for YearMonth.

Create once and re-use for localizing multiple values with the same options. Use YearMonth.localize for one-off localizations.

Examples:

  • January 2026

  • Jan 26

  • 01/2026

actual class YearMonthLocalizer : DateTimeLocalizer<ERROR CLASS: Symbol not found for YearMonth> (source)

Localizer for YearMonth.

Create once and re-use for localizing multiple values with the same options. Use YearMonth.localize for one-off localizations.

Examples:

  • January 2026

  • Jan 26

  • 01/2026

Localizer for YearMonth.

Create once and re-use for localizing multiple values with the same options. Use YearMonth.localize for one-off localizations.

Examples:

  • January 2026

  • Jan 26

  • 01/2026

Constructors

Link copied to clipboard
expect constructor(options: YearMonthOptions, locale: PlatformLocale = getDefaultLocale())
actual constructor(options: YearMonthOptions, locale: PlatformLocale)
actual constructor(options: YearMonthOptions, locale: PlatformLocale)

Functions

Link copied to clipboard
expect open override fun localize(value: YearMonth): String
abstract fun localize(value: ERROR CLASS: Symbol not found for YearMonth): String
actual open override fun localize(value: ERROR CLASS: Symbol not found for YearMonth): String
actual open override fun localize(value: YearMonth): String