Language Service  |  Apps Script  |  Google for Developers (original) (raw)

Language Service

Stay organized with collections Save and categorize content based on your preferences.

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.

[LanguageApp](/apps-script/reference/language/language-app)

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.