Text translation
Text translation (en)
Text translation (en)
  • Introduction
  • Changelog
  • Settings
  • Use plugin
  • Useful links to the Google Translate API documentation
Powered by GitBook
On this page
  • Text translation
  • Definition of language

Was this helpful?

Use plugin

PreviousSettingsNextUseful links to the Google Translate API documentation

Last updated 3 years ago

Was this helpful?

Text translation

  1. For translation use the function "TranslateTextRequest"

  2. Parameter of the Request function, specifies the data for the request

    1. Text - array of strings to translate (maximum 128)

    2. TargetLanguage - the language into which the text will be translated

    3. Format - the format of the original text is html or text

    4. SourceLanguage - the language from which it will be translated, if this field is empty, then the language will be detected automatically

    5. Model - base or nmt

  3. The OnTranslateTextResponse delegate is called when a response comes from Google Translate, then we do what we need with the translated text.

Definition of language

  1. To determine the language use "DetectLanguageRequest"

  2. Parameter of the Request function, specifies the data for the request

    1. Text - an array of strings for which languages will be defined

  3. 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.