Ehrmagerd
A simple wrapper for the ERMAHGERD Translator gem.
Installation
Add this line to your application's Gemfile:
gem 'ehrmagerd'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ehrmagerd
Set up your API key:
- Sign up for mashape.com and obtain an API key.
- Change the name of the
.env.example file to .env. Insert your own API key as the token.
- Run
source .env.
Usage
Pass in a string to translate:
Ehrmagerd.translate("I love cats!")
Contributing
- Fork it ( http://github.com//ehrmagerd/fork )
- 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