|
Methods defined here:
- __init__(self)
- list = method(self, **kwargs)
- Returns text translations from one language to another.
Args:
target: string, The target language into which the text should be translated (required)
cid: string, The customization id for translate (repeated)
format: string, The format of the text
Allowed values
html - Specifies the input is in HTML
text - Specifies the input is in plain textual format
q: string, The text to translate (required) (repeated)
source: string, The source language of the text
Returns:
An object of the form
{
"translations": [ # Translations contains list of translation results of given text
{
"detectedSourceLanguage": "A String", # Detected source language if source parameter is unspecified.
"translatedText": "A String", # The translation.
},
],
}
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|