gcloud alpha ml translate get-supported-languages - returns a list of supported languages for translation
gcloud alpha ml translate get-supported-languages [--display-language-code=DISPLAY_LANGUAGE_CODE] [--model=MODEL] [--zone=ZONE; default="global"] [GCLOUD_WIDE_FLAG ...]
(ALPHA) List supported languages for translation.
The following command lists supported languages.
$ gcloud alpha ml translate get-supported-languages --zone=global
- --display-language-code=DISPLAY_LANGUAGE_CODE
The language to use to return localized, human-readable name of supported languages. If missing, then display names aren't returned in the response.
- --model=MODEL
Get supported languages of specified model.
Authorization requires one or more of the following Google IAM permissions on the specified resource model:
cloudtranslate.generalModels.get
automl.models.get
Defaults to 'general/base'.
Usage:
AutoML models: '--model=TRL321456789'
General models: '--model=general/nmt'
- --zone=ZONE; default="global"
Location to make calls. Non-global location is required for requests using AutoML models. Currently, only 'us-central1' is supported as a non-global location. Defaults to 'global'.
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
This command uses the translate/v3beta1 API. The full documentation for this API can be found at: https://cloud.google.com/translate/docs/quickstarts
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. This variant is also available:
$ gcloud beta ml translate get-supported-languages