Installation

Add this line to your application's Gemfile:

gem 'yandex_tranlator_IS'

And then execute:

$ bundle

Or install it yourself as:

$ gem install yandex_tranlator_IS

Usage

  1. You need to get API key - https://translate.yandex.com/developers/keys
  2. ruby translator = YandexTranlatorIS::YandexTr 3. Create API key ruby translator.apikey 'your key'
  3. Install defoult language ruby translator.default_lang 'default language'
  4. Translate ruby translator.translate 'your text', lang:'language'
  5. Get current API key ruby translator.start
  6. See the list of available languages ruby translator.languages
  7. See current default language ruby translator.default.languages

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/IlyaSedov/yandex_tranlator_IS.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the YandexTranlatorIS project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.