Translator gem
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README
README.md
gtranslate.gemspec

README.md

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?

  1. First install 'gtranslate'

    gem install gtranslate
    
  2. 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. Which translates the given text to your preferred language from translate.google.com