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.

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.