Package-level declarations

Types

Link copied to clipboard
@Serializable
enum CurrencyDisplay : Enum<CurrencyDisplay>

Currency display format.

Link copied to clipboard
@Serializable
data class FluentNumber(val value: Double, val options: FluentNumberOptions = FluentNumberOptions())

Represents a number with formatting options.

Link copied to clipboard
@Serializable
data class FluentNumberOptions(val style: NumberStyle? = null, val currency: String? = null, val currencyDisplay: CurrencyDisplay? = null, val minimumFractionDigits: Int? = null, val maximumFractionDigits: Int? = null)

Options for number formatting.

Link copied to clipboard
interface FluentType

Base interface for custom Fluent types.

Link copied to clipboard
@Serializable
sealed class FluentValue

FluentValue represents any value that can be used in Fluent patterns. Corresponds to Rust's FluentValue enum.

Link copied to clipboard
@Serializable
enum NumberStyle : Enum<NumberStyle>

Number style for formatting.

Link copied to clipboard

Plural categories per CLDR.

Functions

Link copied to clipboard

Create a FluentValue from a Kotlin value.

Link copied to clipboard

Get plural category for a number in a given locale.