Package-level declarations

Types

Link copied to clipboard
external class I18n

Represents the i18next instance.

Link copied to clipboard
@Serializable
class I18nConfiguration

Configuration class for i18next initialization.

Link copied to clipboard
@Serializable
class InterpolationConfiguration

Configuration options for interpolation in i18next.

Link copied to clipboard

Type alias for the translation function.

Link copied to clipboard

Type alias for the translation function with String receiver.

Properties

Link copied to clipboard
val json: Json

Configured Json instance

Functions

Link copied to clipboard

Sets default variables for interpolation using a TranslationConfiguration.

Link copied to clipboard
fun I18n.init(configurationBuilder: I18nConfiguration.() -> Unit): Promise<TranslationFunction>

Initializes the i18next instance with a type-safe configuration.

Link copied to clipboard

Configures the interpolation using InterpolationConfiguration builder.

Link copied to clipboard

Loads the i18next module.

Link copied to clipboard
fun I18nConfiguration.resources(resourcesBuilder: Resources.() -> Unit)

Configures the resources (translations) using Resources builder.