Translator
Ruby library that translates text given in english text to your preferred language using google translate.
Usage:
gem "gtranslate" # To include gem in rails
Now language codes added for tamil, bengali, telugu, hindi, malayalam, kananda
How to include gem in ruby file?
- First install 'gtranslate'
gem install gtranslate
- create file eg: translate.rb
require 'gtranslate'
puts 'love'.translate_to 'tamil'
puts 'love'.translate_to 'Hindi'
Output:
அன்பு प्यार
Note: This is unofficial api for [Google] 1. Which translates the given text to your preferred language from translate.google.com