eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GoogleTranslateAPI':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: GoogleTranslateAPI


Inheritance:

   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

Description:


an interface to the google translator.

copyright

COPYRIGHT (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.

Class protocol:

translation
o  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'   



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:24:03 GMT