Translate with one line of code Google Apps Script
This code defines a function called translateText() that takes the text you want to translate and the target language as inputs. In this example, the text is “Hello world” and the target language is Spanish. The LanguageApp.translate() method is then