Language Service
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Lingua
Questo servizio consente agli script di tradurre automaticamente il testo.
// The code below will write 'Esta es una prueba' to the log.
var spanish = LanguageApp.translate('This is a test', 'en', 'es');
Logger.log(spanish);
Corsi
Nome | Breve descrizione |
LanguageApp | Il servizio Language fornisce agli script un modo per calcolare le traduzioni automatiche del testo. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\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. |"]]