تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 Service\n\nLanguage\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\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-----------------------------------------------------------\n\n### Methods\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. |"]]