malantin / BotBuilderTranslationService

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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.

About

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


Languages

Language:C# 91.7%Language:HTML 8.3%