class LanguageApp method .translate()

LanguageApp is the Apps Script service.

.translate() is the method name you will see after a dot in your code.

What it does

Translates text into another language.

Why it's used

  • Translate customer comments into your team's language.
  • Localize template text for different regions from a sheet.

Common errors

  • Forgetting parentheses on translate. Write LanguageApp.translate(), not LanguageApp.translate or translate by itself.
  • Skipping dots between chained calls. Each step needs a dot, like LanguageApp.translate().
  • Adding spaces where they do not belong. Write LanguageApp.translate(), not LanguageApp .translate(), LanguageApp.translate (), or LanguageApp . translate().
  • Wrong capitalization. Use LanguageApp and translate, not languageapp or translate.

Explore

Related methods

  • .detect()

    Detects the language of a piece of text.

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about LanguageApp.translate().

Browse the blog