setLocale

fun setLocale(context: Context, locale: Locale)

Sets the preferred locale for the project and persists the choice.

This method updates the currentLocale of the project and all its child events. The selected locale will be saved to preferences and automatically applied in future sessions. If the provided locale is not supported by the project, a fallback locale will be selected.

Parameters

context

The Android context, used for saving the locale preference.

locale

The desired Locale to set.