Microsoft Translator lets you translate text across multiple languages.
Status: Preview |
Tier: Standard |
Version: 2.0 |
Name |
Summary |
Get languages |
|
Translate text |
|
Detect language |
Name |
Summary |
Name |
Summary |
|
|
|
Summary: Get languages
Description: Retrieves all languages that Microsoft Translator supports for translation, transliteration or dictionary scopes
Syntax:
MicrosoftTranslatorV2.Languages ([internal][Optional]string scope)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
scope |
string (Scope) |
The scope of supported languages: translation, transliteration or dictionary |
False |
Returns:
Type:array of (Language)
Summary: Translate text
Description: Translates text to a specified language using Microsoft Translator.
Syntax:
MicrosoftTranslatorV2.Translate (string to, [advanced][Optional]string from, [advanced][Optional]string category, [advanced][Optional]string textType, TextBody body)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
to |
string (Target Language) |
The target language code (example: 'fr'). |
True |
|
from |
string (Source Language) |
The source language (if not provided, Microsoft Translator will try to auto-detect) (example: en). |
False |
|
category |
string (Category) |
The translation category (default: 'general'). |
False |
|
textType |
string (Text Type)Values: [plain, html] |
The text type (default: 'plain'). |
False |
|
body |
|
Body containing text to translate or detect |
True |
Returns:
Type:string
Summary: Translated Text
Summary: Detect language
Description: Detects the source language of the given text.
Syntax:
MicrosoftTranslatorV2.Detect (TextBody body)
Parameters:
Name |
Type |
Summary |
Required |
Related Action |
body |
|
Body containing text to translate or detect |
True |
Returns:
Type:Language
Description: Language Model for Microsoft Translator translatable languages
Summary:
Description: Language Model for Microsoft Translator translatable languages
Properties:
Name |
Type |
Summary |
Code |
string Language Code |
Gets or sets the language code. |
Name |
string Language Name |
Gets or sets the language name. |
Summary:
Description: Body containing text to translate or detect
Properties:
Name |
Type |
Summary |
Text |
string Text |
Text to translate or detect |