"MicrosoftTranslator" (Service Connection)
Connecting & Authenticating
ServiceConnect["MicrosoftTranslator"] creates a connection to the Microsoft Translator API.
Requests
ServiceExecute["MicrosoftTranslator","request",params] sends a request to the Microsoft Translator API, using parameters params. The following give possible requests.
Translate Text
"Translate" — retrieves the best translation of a given text
"Text" | (required) | text or list of texts to translate | |
"From" | None | source language | |
"To" | (required) | target language | |
"LanguageRules" | False | show source language(s) in result |
Examples
Basic Examples (4)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0gxr2xh5xcdq1tvtkm7hvw6uu34wu-hculq6
Out[1]=1

Get all available language codes:
In[1]:=1

✖
https://wolfram.com/xid/0gxr2xh5xcdq1tvtkm7hvw6uu34wu-wff9zo
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0gxr2xh5xcdq1tvtkm7hvw6uu34wu-updrp1
Out[1]=1

If not specified, source languages are detected automatically:
In[1]:=1

✖
https://wolfram.com/xid/0gxr2xh5xcdq1tvtkm7hvw6uu34wu-xwjwyf
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0gxr2xh5xcdq1tvtkm7hvw6uu34wu-pwzbmq
Out[2]=2
