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
- You need to get API key - https://translate.yandex.com/developers/keys
ruby translator = YandexTranlatorIS::YandexTr
3. Create API keyruby translator.apikey 'your key'
- Install defoult language
ruby translator.default_lang 'default language'
- Translate
ruby translator.translate 'your text', lang:'language'
- Get current API key
ruby translator.start
- See the list of available languages
ruby translator.languages
- 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.