google_api_translate v0.4.0 API Reference

Modules

API calls for all endpoints tagged Detections.

API calls for all endpoints tagged Languages.

API calls for all endpoints tagged Translations.

Handle Tesla connections for GoogleApi.Translate.V2.

The request message for language detection.

Attributes

  • detections (type: list(GoogleApi.Translate.V2.Model.DetectionsResource.t), default: nil) - A detections contains detection results of several text

Attributes

  • confidence (type: number(), default: nil) - The confidence of the detection result of this language.
  • isReliable (type: boolean(), default: nil) - A boolean to indicate is the language detection result reliable.
  • language (type: String.t, default: nil) - The language we detected.

The request message for discovering supported languages.

Attributes

  • languages (type: list(GoogleApi.Translate.V2.Model.LanguagesResource.t), default: nil) - List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.

Attributes

  • language (type: String.t, default: nil) - Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')
  • name (type: String.t, default: nil) - Human readable name of the language localized to the target language.

The main translation request message for the Cloud Translation API.

The main language translation response message.

Attributes

  • detectedSourceLanguage (type: String.t, default: nil) - The source language of the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language will not occur and this field will be empty.
  • model (type: String.t, default: nil) - The model type used for this translation. Valid values are listed in public documentation. Can be different from requested model. Present only if specific model type was explicitly requested.
  • translatedText (type: String.t, default: nil) - Text translated into the target language.