TranslationResult

constructor(text: String, translated: Boolean, detectedLanguage: String? = null)

Parameters

text

the text to send to the server (the original when translated is false)

translated

true if text differs from the input because it was translated

detectedLanguage

language of the input (a hint or the detected one, for example fr), or null when unknown; it fills the x-language header