Wordref
Wordref is a tiny gem to get a translation from Word reference (no API key needed). You can translate words from one language to another (Wordreference supported languages)
Installation
Add this line to your application's Gemfile:
gem 'wordref'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wordref
Usage
wr = Wordref::Wordref.new
wr.translate(from: 'en', to: 'fr', word: 'cat') # => "chat"
If you don't give the "from" parameter it'll automatically be set to english. That's all.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request