Ruby gem to translate a string from one language to another using google api.
gem install language-translator
require 'rubygems' require 'translator' #To translate 'Hello World' to Hindi tr = Translator.new() tr.translate( 'Hello, World', 'hi') #=> "नमस्ते, दुनिया" #To translate "नमस्ते, दुनिया" to English tr.translate('नमस्ते, दुनिया', 'en','hi') #=> "Hello World" #From Unknown language to english, from 0.1.2 tr.to_en('नमस्ते, दुनिया') #=> "Hello World"