Package-level declarations

Types

Link copied to clipboard

Kind of entry.

Link copied to clipboard

FluentArgs wraps arguments passed to message formatting. Supports both named arguments (key-value) and positional arguments. Corresponds to Rust's FluentArgs.

Link copied to clipboard

Immutable runtime bundle for localizing messages.

Link copied to clipboard

Builder for immutable FluentBundle instances.

Link copied to clipboard
sealed class FluentError

Errors that can occur in FluentBundle.

Link copied to clipboard

FluentMessage provides a public view of a message.

Link copied to clipboard
class FluentResource(val body: List<Entry>)

FluentResource wraps a parsed Fluent AST.

Link copied to clipboard
class FluentTerm(term: Entry.Term)

FluentTerm provides a public view of a term.

Link copied to clipboard

Platform-specific Intl helper functions. These are implemented via expect/actual in platform-specific sources.

Link copied to clipboard
expect object PlatformIntl

Platform-specific Intl implementations.

actual object PlatformIntl

JVM implementation of PlatformIntl.

actual object PlatformIntl

LinuxX64 implementation of PlatformIntl. Uses fallback basic formatting since full Intl isn't available on native.

Functions

Link copied to clipboard

Register the built-in functions. DSL alias for addBuiltins.

Link copied to clipboard
fun fluentArgsOf(vararg values: Any?): FluentArgs

Convenience function to create FluentArgs with positional arguments.

fun fluentArgsOf(vararg pairs: Pair<String, Any?>): FluentArgs

Convenience function to create FluentArgs with named arguments.

Link copied to clipboard
fun fluentBundle(locales: List<LanguageIdentifier>, useIsolating: Boolean = true, block: FluentBundleBuilder.() -> Unit = {}): FluentBundle

DSL entry point for building an immutable FluentBundle.

Link copied to clipboard

Register a custom function callable from FTL patterns.

Link copied to clipboard

Parse inline FTL source and add it to the bundle.

Parse and add an FTL file from disk (JVM only).

Link copied to clipboard

Alias matching the imperative addResource — same shape, DSL-friendly name.

Link copied to clipboard

Set the transform applied to every formatted text element.