Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 837 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 837 Bytes

translate-en-ru

GitHubActions

About

Script for translating words/sentences from English to Russian and vice versa with Yandex.Translate API.

How to run

  1. install Git and Ruby;

  2. clone repository:

$ git clone https://github.com/fartem/translate-en-ru
  1. install whatlanguage gem:
$ gem install whatlanguage
  1. add your Yandex.Translate API key in OS environment:
$ export YANDEX_TRANSLATE_KEY=YOUR_YANDEX_TRANSLATE_KEY
  1. run from shell in project folder:
$ ./translate YOUR_TEXT