NAME
easy_translate
SYNOPSIS
Ruby binding for Google Translate that supports Batch Translation
URIS
INSTALL
gem install easy_translate
WHY?
- Only Ruby binding to have support for Bulk Translations
- Only Ruby binding to offer POST support for long translations
- Supports every option in the API, especially API keys and user_ip,
which most Ruby bindings skip over. - Has an extremely clean syntax
SAMPLES
EasyTranslate.translate(‘Hello, world’, :to => :spanish) # => “Hola,
mundo”
batch translation? => [“¡Hola”, “Despedida”]
EasyTranslate.translate([‘Hello’, ‘Goodbye’], :to => :spanish)
what if you’re even crazier? => [[‘¡Hola’, ‘Despedida’], [‘Ciao’,
‘Addio’]]
EasyTranslate.translate([‘Hello’, ‘Goodbye’], :to => [:es, :it])
translate something into every language in Google Translate
with a single API call
EasyTranslate.translate(‘hello’, :to => EasyTranslate.LANGUAGES.keys)
THANKS
[email protected]
@seejohnrun