"MicrosoftTranslator" (Service Connection)
-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- GoogleTranslate
- BingSearch
- GoogleCustomSearch
-
-
See Also
- ServiceExecute
- ServiceConnect
-
- Service Connections
- GoogleTranslate
- BingSearch
- GoogleCustomSearch
-
See Also
"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
open all close allBasic Examples (1)
Scope (2)
Get all available language codes:
ServiceExecute["MicrosoftTranslator", "LanguageList", {}]If not specified, source languages are detected automatically:
ServiceExecute["MicrosoftTranslator", "Translate", {"Text" -> {"Hola mundo!", "Mi nombre es Paul", "Today is Friday"}, "To" -> "fr", "LanguageRules" -> True}]ServiceExecute["MicrosoftTranslator", "Translate", {"Text" -> {"Hola mundo!", "Mi nombre es Paul", "Today is Friday"}, "To" -> "fr"}]See Also
ServiceExecute ▪ ServiceConnect
Service Connections: GoogleTranslate ▪ BingSearch ▪ GoogleCustomSearch