Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Translator gem
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.