# Easy\_translate-0.1.1

**URL:** <https://www.ruby-forum.com/t/easy-translate-0-1-1/190392>\
**Category:** Ruby\
**Created:** [June 19, 2010, 2:33am UTC](https://www.ruby-forum.com/t/easy-translate-0-1-1/190392 "2010-06-19T02:33:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [June 19, 2010, 2:33am UTC](https://www.ruby-forum.com/t/easy-translate-0-1-1/190392/1 "2010-06-19T02:33:19Z")

</div>

NAME

easy\_translate

SYNOPSIS

Ruby binding for Google Translate that supports Batch Translation

URIS

> **[GitHub - seejohnrun/easy\_translate: Google Translate (with Bulk translate) in...](https://github.com/seejohnrun/easy_translate)**
>
> Google Translate (with Bulk translate) in Ruby. Contribute to seejohnrun/easy\_translate development by creating an account on GitHub.

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

removed\_email\_address@domain.invalid  
@seejohnrun

[http://blog.johncrepezzi.com/archives/154](http://blog.johncrepezzi.com/archives/154)

a @ [http://codeforpeople.com/](http://codeforpeople.com/)
