Script for translating words/sentences from English to Russian and vice versa with Yandex.Translate API.
$ git clone https://github.com/fartem/translate-en-ru
- install whatlanguage gem:
$ gem install whatlanguage
- add your Yandex.Translate API key in OS environment:
$ export YANDEX_TRANSLATE_KEY=YOUR_YANDEX_TRANSLATE_KEY
- run from shell in project folder:
$ ./translate YOUR_TEXT