[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe Language service enables automatic text translation within scripts.\u003c/p\u003e\n"],["\u003cp\u003eIt uses the \u003ccode\u003eLanguageApp\u003c/code\u003e class and methods like \u003ccode\u003etranslate()\u003c/code\u003e to perform the translations.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the source and target languages for translation using language codes like 'en' for English and 'es' for Spanish.\u003c/p\u003e\n"]]],[],null,["Language\n\nThis service allows scripts to automatically translate text. \n\n // The code below will write 'Esta es una prueba' to the log.\n var spanish = LanguageApp.translate('This is a test', 'en', 'es');\n Logger.log(spanish);\n\nClasses \n\n| Name | Brief description |\n|-------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| [LanguageApp](/apps-script/reference/language/language-app) | The Language service provides scripts a way to compute automatic translations of text. |\n\n[LanguageApp](/apps-script/reference/language/language-app) \n\nMethods\n\n| Method | Return type | Brief description |\n|------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|--------------------------------------------------------------------------------------|\n| [translate(text, sourceLanguage, targetLanguage)](/apps-script/reference/language/language-app#translate(String,String,String)) | `String` | Automatically translates some text from a source language to a destination language. |\n| [translate(text, sourceLanguage, targetLanguage, advancedArgs)](/apps-script/reference/language/language-app#translate(String,String,String,Object)) | `String` | Automatically translates some text from a source language to a destination language. |"]]