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
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 the source, tweak and post back!
Recent blog posts
- watir-webdriver web inspector
- gem list to gemfile
- Packing ruby2.0 on debian.
- Made it into The Guinness Book!
- to_h in ruby 2.0
- Filter elements by pattern jQuery.
- Better HTML password fields for mobile ?
- Grayscale image when user offline
- nth-child CSS pseudo-class Christmas colors
- EventEmitter in nodejs