isTranslationSupported

suspend fun isTranslationSupported(sourceLanguage: String? = null): Boolean

True if non-English text can currently be translated to English on this device.

Parameters

sourceLanguage

BCP-47 language of the text, or null to ask about translation in general