HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_ml_translate_detect-language.1
.TH "GCLOUD_BETA_ML_TRANSLATE_DETECT\-LANGUAGE" 1



.SH "NAME"
.HP
gcloud beta ml translate detect\-language \- use the Google Cloud Translation API to detect languages



.SH "SYNOPSIS"
.HP
\f5gcloud beta ml translate detect\-language\fR (\fB\-\-content\fR=\fICONTENT\fR\ |\ \fB\-\-content\-file\fR=\fICONTENT_FILE\fR) [\fB\-\-mime\-type\fR=\fIMIME_TYPE\fR] [\fB\-\-model\fR=\fIMODEL\fR] [\fB\-\-zone\fR=\fIZONE\fR;\ default="global"] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(BETA)\fR Detects the language of text in a request.



.SH "EXAMPLES"

The following command detects the language of 'What beautiful weather!'

.RS 2m
$ gcloud beta ml translate detect\-language \e
    \-\-content='What beautiful weather!' \-\-zone=us\-central1
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Contents group.

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-content\fR=\fICONTENT\fR

Content of the input in string format.

.TP 2m
\fB\-\-content\-file\fR=\fICONTENT_FILE\fR

Specify a local file path with content.


.RE
.RE
.sp

.SH "OPTIONAL FLAGS"

.RS 2m
.TP 2m
\fB\-\-mime\-type\fR=\fIMIME_TYPE\fR

Format of the source text, for example, 'text/html', 'text/plain'. Defaults to
\'text/html'.

.TP 2m
\fB\-\-model\fR=\fIMODEL\fR

Language detection model to be used. If not specified, the default
(language\-detection/default) model is used. Authorization requires the
following Google IAM permission on the specified resource model:

.RS 2m
cloudtranslate.languageDetectionModels.predict
.RE

.TP 2m
\fB\-\-zone\fR=\fIZONE\fR; 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'.


.RE
.sp

.SH "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 \fB$ gcloud help\fR for details.



.SH "API REFERENCE"

This command uses the \fBtranslate/v3\fR API. The full documentation for this
API can be found at: https://cloud.google.com/translate/docs/quickstarts



.SH "NOTES"

This command is currently in beta and might change without notice. This variant
is also available:

.RS 2m
$ gcloud alpha ml translate detect\-language
.RE