Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class DateTimeFormatOptions(val dateStyle: DateTimeStyle? = null, val timeStyle: DateTimeStyle? = null, val weekday: TextStyle? = null, val era: TextStyle? = null, val year: TextStyle? = null, val month: TextStyle? = null, val day: TextStyle? = null, val hour: TextStyle? = null, val minute: TextStyle? = null, val second: TextStyle? = null, val timeZoneName: TextStyle? = null, val hour12: Boolean? = null, val timeZone: String? = null, val calendar: String? = null, val numberingSystem: String? = null)

DateTime formatting options.

Link copied to clipboard
Link copied to clipboard
data class FormatterKey(val name: String, val options: Any? = null)

Key for memoizing formatters with specific options.

Link copied to clipboard
interface IntlFormatter<T>

Common interface for Intl formatters that can be memoized. Each formatter is locale-specific.

Link copied to clipboard

Per-language memoizer that caches instances by type.

Link copied to clipboard

Multi-locale memoizer container.

Link copied to clipboard
class JvmDateTimeFormatter(locale: Locale, options: DateTimeFormatOptions = DateTimeFormatOptions()) : IntlFormatter<Temporal>

Format dates and times using locale-aware formatting.

Link copied to clipboard
class JvmListFormatter(locale: Locale, options: ListFormatOptions = ListFormatOptions()) : IntlFormatter<List<String>>

Format lists with locale-aware conjunction/disjunction.

Link copied to clipboard
class JvmNumberFormatter(locale: Locale, options: NumberFormatOptions = NumberFormatOptions()) : IntlFormatter<Double>

JVM implementation of Intl formatters. Uses java.text and java.time for locale-aware formatting.

Link copied to clipboard
class JvmPluralRules(locale: Locale)

Get plural category for a number in a given locale. Uses Java's PluralRules under the hood.

Link copied to clipboard
@Serializable
data class LanguageIdentifier(val language: String, val script: String? = null, val region: String? = null, val variants: List<String> = emptyList(), val extensions: Map<String, String> = emptyMap())

Represents a BCP 47 language identifier.

Link copied to clipboard
class LinuxX64DateTimeFormatter(locale: LanguageIdentifier, options: DateTimeFormatOptions = DateTimeFormatOptions()) : IntlFormatter<Long>

Format dates - basic fallback implementation for LinuxX64.

Link copied to clipboard
class LinuxX64ListFormatter(locale: LanguageIdentifier, options: ListFormatOptions = ListFormatOptions()) : IntlFormatter<List<String>>

Format lists - basic fallback implementation for LinuxX64.

Link copied to clipboard
class LinuxX64NumberFormatter(locale: LanguageIdentifier, options: NumberFormatOptions = NumberFormatOptions()) : IntlFormatter<Double>

LinuxX64 (Kotlin/Native) implementation of Intl formatters. Uses a fallback approach for basic formatting. For full Intl support, consider using ICU4X or platform-specific bindings.

Link copied to clipboard

Plural rules for LinuxX64.

Link copied to clipboard
data class ListFormatOptions(val type: ListType = ListType.Conjunction, val style: ListStyle = ListStyle.Long)

List formatting options.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Memoizable

Interface for types that can provide a memoization key. This replaces the Rust trait functionality.

Link copied to clipboard
Link copied to clipboard
data class NumberFormatOptions(val style: NumberFormatStyle = NumberFormatStyle.Decimal, val currency: String? = null, val currencyDisplay: CurrencyDisplayMode = CurrencyDisplayMode.Symbol, val currencySign: CurrencySign = CurrencySign.Standard, val minimumIntegerDigits: Int? = null, val minimumFractionDigits: Int? = null, val maximumFractionDigits: Int? = null, val minimumSignificantDigits: Int? = null, val maximumSignificantDigits: Int? = null, val useGrouping: Boolean? = null, val signDisplay: SignDisplay = SignDisplay.Auto, val compactDisplay: CompactDisplay = CompactDisplay.Short, val notation: Notation = Notation.Standard, val unit: String? = null, val unitDisplay: UnitDisplay = UnitDisplay.Short)

Number formatting options.

Link copied to clipboard
Link copied to clipboard
data class PluralRulesOptions(val type: PluralRuleType = PluralRuleType.Cardinal, val minimumFractionDigits: Int? = null, val maximumFractionDigits: Int? = null)

Options for plural rule selection.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Convert LanguageIdentifier to Java Locale.