Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (7 sloc) 344 Bytes

GTranslate Readme

Library that wraps the Google Translate API. Translates a phrase from one language to another.


Fairly simple to use. See examples.rb for full examples.

Google::Translate.english_to_french( "Hello" ) # => "Bonjour"

You can use language detection too:

Google::Translate.to_english( "Bonjour" ) # => "Hello"
Something went wrong with that request. Please try again.