1.Introduction
Description: Extension to translate text with Microsoft Translation API
Released: 2022-05-01T18:30:00Z
Last Updated: 2022-05-01T18:30:00Z
Permissions: android.permission.INTERNET
Thanks to @Point for sponsoring the extension.
2.Blocks
3.Documentation
Docs for: MicrosoftTranslator
Events
GotError
Event raised when an error occurs
functionName | text
errorMessage | text
GotLanguagesList
Event raised after getting language's list
namesList | any
nativeNamesList | any
langCodesList | any
GotTranslation
Event raised after getting translation
responseDictionary | dictionary
GotTranslationWithLang
Event raised after getting response of 'TranslateWithLangDetection' method
language | text
score | text
responseDictionary | dictionary
LanguageDetected
Event raised after detecting language
language | text
score | text
isTranslationSupported | boolean
Methods
DetectLanguage
Detects language of given text
text | text
GetLanguagesList
Gets a list of all supported languages
Translate
Translates given text into target language
srcLang | text
text | text
toLangList | text
TranslateWithLangDetection
Translates text with language detection
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
You can translate text into multiple languages by providing a csv list of language codes
Detect Text Language
Please read:
5.Downloads
Aix:
com.sunny.translation.aix (565.7 KB)
The extension is open source:
6.Liked my work?
You can donate some amount to keep me motivated.
Hope it helps!