Connectors Reference

Microsoft Translator V2

Microsoft Translator lets you translate text across multiple languages.

 

Status: Preview

Tier: Standard

Version: 2.0

 

Actions:

Name

Summary

Languages ([internal][Optional]string scope)

Get languages

Translate (string to, [advanced][Optional]string from, [advanced][Optional]string category, [advanced][Optional]string textType, TextBody body)

Translate text

Detect (TextBody body)

Detect language

 

Triggers:

Name

Summary

 

Objects:

Name

Summary

Language

 

TextBody

 

 

Actions:

Languages

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)

 

Translate

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

Languages

from

string

(Source Language)

The source language (if not provided, Microsoft Translator will try to auto-detect) (example: en).

False

Languages

category

string

(Category)

The translation category (default: 'general').

False

textType

string

(Text Type)Values: [plain, html]

The text type (default: 'plain').

False

body

TextBody

 

Body containing text to translate or detect

True

 

Returns:

          Type:string

          Summary: Translated Text

 

Detect

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

TextBody

 

Body containing text to translate or detect

True

 

Returns:

          Type:Language

          Description: Language Model for Microsoft Translator translatable languages

 


 

Language

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.


 

TextBody

Summary:

Description: Body containing text to translate or detect

 

          Properties:

Name

Type

Summary

Text

string

Text

Text to translate or detect