1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 15:39:42 +00:00
gcloud-help/gcloud/alpha/ml/translate/get-supported-languages
2022-03-01 04:29:52 +00:00

67 lines
2.2 KiB
Text

NAME
gcloud alpha ml translate get-supported-languages - returns a list of
supported languages for translation
SYNOPSIS
gcloud alpha ml translate get-supported-languages
[--display-language-code=DISPLAY_LANGUAGE_CODE] [--model=MODEL]
[--zone=ZONE; default="global"] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) List supported languages for translation.
EXAMPLES
The following command lists supported languages.
$ gcloud alpha ml translate get-supported-languages --zone=global
FLAGS
--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'.
GCLOUD WIDE FLAGS
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.
API REFERENCE
This command uses the translate/v3beta1 API. The full documentation for
this API can be found at:
https://cloud.google.com/translate/docs/quickstarts
NOTES
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