Use plugin
Last updated
Was this helpful?
Last updated
Was this helpful?
For translation use the function "TranslateTextRequest"
Parameter of the Request function, specifies the data for the request
Text - array of strings to translate (maximum 128)
TargetLanguage - the language into which the text will be translated
Format - the format of the original text is html or text
SourceLanguage - the language from which it will be translated, if this field is empty, then the language will be detected automatically
Model - base or nmt
The OnTranslateTextResponse delegate is called when a response comes from Google Translate, then we do what we need with the translated text.
To determine the language use "DetectLanguageRequest"
Parameter of the Request function, specifies the data for the request
Text - an array of strings for which languages will be defined
The OnDetectLanguageResponse delegate is called when a response from Google Translate comes, then we do what we need with the language that we have defined.