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
- TypeError: Object #<NodeList> has no method 'forEach' in javascript?
- JSON parsing with ruby one-liner ?
- Native JS like jQuery
- URL scrapping with javascript
- Download images with node.js
- TypeError: can't convert Regexp into String
- One click duckduckgo
- Comparing Strings with variable white spacing
- Watir Webdriver attach window
- Remotely enable remote desktop on Debian