setLocale

open fun setLocale(locale: Locale): Locale(source)

Sets the current locale for the Tolgee instance, updating it in the reactive locale flow.

Parameters

locale

The locale to be set for translations and related operations.


open fun setLocale(localeTag: String): Locale(source)

Adjusts the current locale used for translations.

Parameters

localeTag

A string representation of the desired locale.