TranslationResult

Result of a message translation attempt.

Inheritors

Types

Link copied to clipboard
data class ModelDownloadRequired(val languageTags: List<String>, val estimatedSizeMb: Int) : TranslationResult

The models for languageTags must be downloaded (an estimated estimatedSizeMb) before translating.

Link copied to clipboard

The message is already in the target language; there is nothing to translate or persist.

Link copied to clipboard
data class Success(val translatedText: String) : TranslationResult

Translation succeeded. translatedText contains the message text in the target locale.

Link copied to clipboard

Translation is not available on this platform/flavor, or the source language could not be determined.