An open API service indexing awesome lists of open source software.

https://github.com/malantin/botbuildertranslationservice

A small sample based on the EchoBot to demonstrate how to translate messages and detect language without using the Translation Middleware.
https://github.com/malantin/botbuildertranslationservice

botbuilder botbuilder-sdk botframework cognitive-services microsoft-botbuilder microsoft-cognitive-services microsoft-translator microsoft-translator-api microsoft-translator-service

Last synced: 2 months ago
JSON representation

A small sample based on the EchoBot to demonstrate how to translate messages and detect language without using the Translation Middleware.

Awesome Lists containing this project

README

        

# An echo bot using a custom service class for translating user messages through the Microsoft Translator API
Sometimes you need translation capabilities in your bot but require a more granular control than the [Translation Middleware](https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-howto-translation?view=azure-bot-service-4.0&tabs=cs) offers.
For example, you want to decide for each message you receive whether you want to translate the message or not. Or you might want to translate back just parts of your bot's messages to the user.

This sample example is built on the Echo bot template and shows how use a custom service class for detecting the input language and translating text.

Feel free to comment of contribute.