This project i write for learning rust. If you have some ideas or find some errors, i be happy if you did pull request.
bash
git clone https://github.com/Norbytus/yandex_translate_rust.git
cd yandex_translate_rust
cargo build --release
mv target/release/yandex_translate /usr/local/bin/
You can create dir .yandextranslate in your home dir and create inside file .yandextranslate.conf(with your API key)
Need rustc 1.17.0-nightly
If your don't have config file you need always set flag -k with your api key.
Show help
bash
yandex_translate -h
Translate text example
bash
yandex_translate -l en-ru -t "Hello world"
Translate text from pipe example
bash
echo Hello wolrd | yandex_translate -l ru -p
Testing on FreeBSD and ArchLinux