Translates text into another language.
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
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.
More Apps Script
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().