Share this post on:

1.Introduction

Description: Extension to translate text with Microsoft Translation API
Released:  May 2, 2022
Last Updated:  May 2, 2022
Permissions: android.permission.INTERNET

Thanks to @Point for sponsoring the extension.

2.Blocks

image
image

3.Documentation

Docs for: MicrosoftTranslator

Events

GotError

Event raised when an error occurs

Params

functionName | text
errorMessage | text


GotLanguagesList

Event raised after getting language’s list

Params

namesList | any
nativeNamesList | any
langCodesList | any


GotTranslation

Event raised after getting translation

Params

responseDictionary | dictionary


GotTranslationWithLang

Event raised after getting response of ‘TranslateWithLangDetection’ method

Params

language | text
score | text
responseDictionary | dictionary


LanguageDetected

Event raised after detecting language

Params

language | text
score | text
isTranslationSupported | boolean


Methods

DetectLanguage

Detects language of given text

Params

text | text


GetLanguagesList

Gets a list of all supported languages


Translate

Translates given text into target language

Params

srcLang | text

text | text

toLangList | text


TranslateWithLangDetection

Translates text with language detection

Params

text | text

toLangList | text


Properties

ResourceLocation

Sets resource location

Property Type : read-write
Accepts : text


SubscriptionKey

Sets subscription api key

Property Type : read-write
Accepts : text


4.Usages

Trasnslate text into single language
image
*You can translate text into multiple languages by providing a csv list of language codes

Detect Text Language
image

5.Downloads

Aix:
com.sunny.translation.aix (565.7 KB)

The extension is open source: https://github.com/vknow360/MicrosoftTranslator

6.Liked my work?

You can donate some amount to keep me motivated.

PayPal: paypal.me

UPI: [email protected]

Hope it helps!

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments