setLanguage

fun setLanguage(locale: Locale, customStrings: CustomStrings? = null)

set the language to the messaging window

You can also set the language not supported by ui sdk by passing the static string values in string file The missing static strings for unsupported Locales will use English strings