locale

fun locale(locale: Locale): Tolgee.Config.Builder(source)

Sets the locale configuration for the builder and returns the instance for further customization.

Parameters

locale

The locale to be set for the builder.


Sets the locale for the configuration using the provided locale string.

Parameters

localeTag

The locale string in the format of a language tag (e.g., "en", "fr", "es").


var locale: Locale?(source)

Represents the locale used for translations or language-specific configurations. This variable holds a Locale object that defines the language and region settings for the associated configuration or operation.

A null value indicates that no specific locale has been set, and the default locale behavior should be applied if required.