Multi lingual xmpp translate bot

Multi lingual translate bot code in ruby after the xmpp ruby chat-bot this bot is coding in ruby with the help of to_lang ruby gem.

Demo of the bot :

Will be adding more flags for the easy of use soon!

How the bot works?
It makes use of Google translate API the response that will be returned by the server will be a JSON

 "data": {
  "translations": [
    "translatedText": "fleurs"

This response is parsed to get the translated text as : CGI.unescapeHTML(response.parsed_response["data"]["translations"][0]["translatedText"])

Caution : Default limit: 100,000 characters/day is the limit!

Get involved : GET the source, tweak and post back!

Share this