"MicrosoftTranslator" (Service Connection)

Translate text with the Microsoft Translator API

Connecting & Authenticating

ServiceConnect["MicrosoftTranslator"] creates a connection to the Microsoft Translator API.
Use of this connection requires internet access and a Microsoft Translator API account.

Requests

ServiceExecute["MicrosoftTranslator","request",params] sends a request to the Microsoft Translator API, using parameters params. The following give possible requests.

Translate Text

Request:

"Translate" retrieves the best translation of a given text

Parameters:
  • "Text"(required)text or list of texts to translate
    "From"Nonesource language
    "To"(required)target language
    "LanguageRules"Falseshow source language(s) in result
  • Request:

    "LanguageList" list all supported language codes

    "LanguageEntityList" list all supported language entities

    Examples

    Basic Examples  (4)

    Create a new connection:

    Get all available language codes:

    Translate text:

    If not specified, source languages are detected automatically: