Sha256: 1ea3f9dcda73a7d10cf2010a183a61c749f7dd8b841b89ec8521d49e3e470a23

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

Nele translates ruby string to the other language.

It uses external public translators like Microsoft Translator or Yahoo's Babelfish.

### Installation:
    git clone git@github.com:cfx/nele.git
    cd nele
    gem build nele.gemspec
    gem install nele-0.x.x.gem

### Usage:

    require 'nele'

    String.translators
    => [:babelfish, :ms]

### Microsoft Translator:

    String.translator = :ms
    String.translator.config[:from] = "en"
    String.translator.config[:to] = "pl"
    String.translator.config[:appId] = YOUR_APP_ID

    "nice girl".translate
    => "mila dziewczyna"

### Yahoo's Babelfish:

    String.translator = :babelfish
    String.translator.config[:lp] = "en_es"

    "hello".translate
    => "hola"

If you know any other (free) public translators just let me know, or write your own adapter for nele.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nele-0.2.2 README.md~