Click here to see your recently viewed pages and most viewed pages.
Hide
Apps Script

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

NameBrief description
LanguageAppThe Language service provides scripts a way to compute automatic translations of text.

Class LanguageApp

Methods

MethodReturn typeBrief description
translate(text, sourceLanguage, targetLanguage)StringAutomatically translates some text from a source language to a destination language.
translate(text, sourceLanguage, targetLanguage, advancedArgs)StringAutomatically translates some text from a source language to a destination language.