This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README | ||
| |
lib/ | ||
| |
ruby_translate.gemspec |
README
RubyTranslate provides a simple wrapper around the Google Translate API for detecting and translating languages.
Usage:
gem install sermoa-ruby_translate
require 'ruby_translate'
Detect:
RubyTranslate.detect("Mein Luftkissenfahrzeug ist voller Aale")
=> "de"
RubyTranslate.detect("Safisha viatu yangu mara moja!")
=> "sw"
Translate:
RubyTranslate.translate("Mein Luftkissenfahrzeug ist voller Aale", "en")
=> "My hovercraft is full of eels"
RubyTranslate.translate("Il y a un singe qui vole dans l'arbre.", "en")
=> "There is a flying monkey in the tree."
RubyTranslate.translate("They are singing in St Peter's Square", "it")
=> "Essi sono il canto, in Piazza San Pietro"
RubyTranslate.translate("Eu queria um outro pedacinho de Apfelstrudel, por favor", "sv", "pt")
=> "Jag ville ha en bit av Apfelstrudel, tack"








