---
title: "Multi Lingual Xmpp Translate Bot"
description: "Multi lingual translate bot code in ruby after the xmpp ruby chat-bot this bot is coding in ruby with the help of tolang."
url: "https://h3manth.com/scribe/multi-lingual-xmpp-translate-bot/"
canonical_url: "https://h3manth.com/scribe/multi-lingual-xmpp-translate-bot/"
markdown_url: "https://h3manth.com/scribe/blog/multi-lingual-xmpp-translate-bot.md"
publishDate: "2011-01-02T00:00:00.000Z"
author: "Hemanth HM"
category: "javascript"
tags: ["ruby","javascript","git","web"]
word_count: 109
reading_time_minutes: 1
x_markdown_tokens: 303
content_signal: "ai-train=yes, search=yes, ai-input=yes"
---

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

Multi lingual translate bot code in ruby after the [xmpp ruby chat-bot](http://www.h3manth.com/content/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
    
    
    handleResponse({
     "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](https://github.com/hemanth/Gtrans) the source, tweak and post back!
