|
Class: GoogleTranslateAPI
Object
|
+--GoogleTranslateAPI
- Package:
- stx:libbasic2
- Category:
- Collections-Text-Support
- Version:
- rev:
1.9
date: 2023/05/14 05:57:10
- user: cg
- file: GoogleTranslateAPI.st directory: libbasic2
- module: stx stc-classLibrary: libbasic2
an interface to the google translator.
copyrightCOPYRIGHT (c) 2021 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
translation
-
translate: original from: sourceLang to: targetLang
-
translate the given text and return it.
sourcelang and targetlang must be one of {'en' , 'fr', 'de', 'es', 'it', etc.}.
Returns nil, if the request fails.
Usage example(s):
self translate:'Goto Class' from:'en' to:'fr'
self translate:'In Current Process' from:'en' to:'nl'
|
|