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
-
translator = YandexTranlatorIS::YandexTr
3. Create API key
```ruby
translator.apikey 'your key'
- Install defoult language
translator.default_lang 'default language'
- Translate
translator.translate 'your text', lang:'language'
- Get current API key
translator.start
- See the list of available languages
translator.languages
- See current default language
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.