Skip to content

Translation

Keith Sterling edited this page Jan 13, 2019 · 3 revisions

#Translation

Programy n ow uses a combination of the TextBlob translate API and its connectivity with Google translate to allow you to translate to and from any langauge support by Google Translate

This allows you to continue to use the core Y-Bot, Alice2, Rosie or other bots developed in English, but operate in langauge of choice

To use this feature your bot will need to have internet access to Google so would not work in a closed environment.

Configuration

To configure translation, use the following config

        bot:
            translator:
                classname: programy.translate.textblob_translator.TextBlobTranslator
                from: fr
                to: en 

If you leave 'from' blank it will attempt to determine the language and translate it into English

Clone this wiki locally