AI-generated Key Takeaways
-
The Language service enables scripts to automatically translate text.
-
The
LanguageAppclass provides methods for translating text. -
The
translatemethod is used to translate text from a source language to a target language.
Language
This service allows scripts to automatically translate text.
//
The
code
below
will
write
'Esta es una prueba'
to
the
log
.
var
spanish
=
LanguageApp
.
translate
(
'This is a test'
,
'en'
,
'es'
);
Logger
.
log
(
spanish
);
Classes
| Name | Brief description |
|---|---|
Language
|
The Language service provides scripts a way to compute automatic translations of text. |
Language
App
Methods
| Method | Return type | Brief description |
|---|---|---|
String
|
Automatically translates some text from a source language to a destination language. | |
String
|
Automatically translates some text from a source language to a destination language. |

