availableLocales

open val availableLocales: List<Locale>?(source)

The list of available locales from the manifest or configuration.

Returns the locales configured via Config.Builder.availableLocales, or if not manually configured, the locales fetched from the CDN manifest.

Returns null if the manifest hasn't been loaded yet and no manual config was provided. Call preload first to ensure the manifest is loaded.

For reactive updates, combine with changeFlow:

tolgee.changeFlow.collect {
val locales = tolgee.availableLocales
}