Language Service
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 |
LanguageApp | The Language service provides scripts a way to compute automatic translations of text. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["The Language service enables automatic text translation within scripts."],["It uses the `LanguageApp` class and methods like `translate()` to perform the translations."],["You can specify the source and target languages for translation using language codes like 'en' for English and 'es' for Spanish."]]],[]]