Localization

Localization manager.

Inheritors

Constructors

Link copied to clipboard
constructor(generator: G)

Types

Link copied to clipboard
object Companion

Create a simple localization with a single bundle.

Functions

Link copied to clipboard

Add a locale change listener.

Link copied to clipboard
fun format(id: String, args: FluentArgs? = null): String?

Format a message.

Link copied to clipboard
fun formatAttribute(id: String, attribute: String, args: FluentArgs? = null): String?

Format an attribute of a message.

Link copied to clipboard
fun formatValue(id: String, args: FluentArgs? = null): String?

Format a value (message without attributes).

Link copied to clipboard

Format a message synchronously with full control.

Link copied to clipboard

Get all available locales.

Link copied to clipboard

Get current bundles.

Link copied to clipboard

Get errors from the last operation.

Link copied to clipboard

Get current locales.

Link copied to clipboard
fun has(id: String): Boolean

Check if a message exists.

Link copied to clipboard

Check if a specific locale has a message.

Link copied to clipboard

Force regeneration of bundles.

Link copied to clipboard

Remove a locale change listener.

Link copied to clipboard

Set locales for localization.

Link copied to clipboard

Set resource IDs to load.