sourceLanguageCode property

String? sourceLanguageCode
getter/setter pair

The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn".

Supported language codes are listed in Language Support. If the source language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. Source language must be specified if the request contains a glossary or a custom model.

Optional.

Implementation

core.String? sourceLanguageCode;