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!
About Hemanth HM
Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.