how I can add support of multi-language for content description. I am developing a kiosk app where I want to take confirmation from users for the language they want to have for accessibility. I had tried the below code but it only speaks content in one language.
fun wrapTextInLocaleSpan(
originalText: CharSequence, loc: LocaleList): SpannableStringBuilder {
val myLocaleBuilder = SpannableStringBuilder(originalText)
myLocaleBuilder.setSpan(LocaleSpan(loc), 0,
originalText.length - 1, 0)
return myLocaleBuilder
}
What could be best solution for supporting content description in multiple language ?