You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.8 KiB
Markdown

# 🧇Google Translate bash client🧇
__Get translated text from your terminal!__
### 📄 How it work?
This script translate your text. \
Script will parse your source language and target language + your text, then Script send this information to Google Translate Api and get translated text.\
__Multi-line text input supported.__
****************************************
### 📙 Instructions:
- **[Instruction for adding script as program in GoldenDict](https://github.com/OPHoperHPO/GT-bash-client/issues/3)**
****************************************
### 🧰 Usage:
- `./translate.sh <source_lng> <new_lng> <your text>` \
If you do not know the source language, then put the value `auto` in place of `<source_lng> `
****************************************
### 🏷 Install
- Clone repository via `git clone https://github.com/OPHoperHPO/GT-bash-client`
- Check script via `./GT-bash-client/translate.sh en es Hello`
****************************************
### 🧷 Note:
This bash script is combine of this scripts: \
[JSON.sh](https://github.com/dominictarr/JSON.sh) \
[Gist #1](https://gist.github.com/elFua/3342075) \
[Gist #2](https://gist.github.com/ayubmalik/149e2c7f28104f61cc1c862fe9834793)
****************************************
### 💵 Support me:
You can thank me for developing any of my projects, provide financial support for developing new projects and buy me a small cup of coffee.☕ \
Just support me on these platforms:
* ![](https://github.com/OPHoperHPO/OPHoperHPO/raw/master/assets/imgs/boosty_logo.jpeg) [**Boosty**](https://boosty.to/anodev)
* ![](https://github.com/OPHoperHPO/OPHoperHPO/raw/master/assets/imgs/donationalerts_logo.png) [**DonationAlerts**](https://www.donationalerts.com/r/anodev_development)
* ![](https://github.com/OPHoperHPO/OPHoperHPO/raw/master/assets/imgs/paypal_logo.jpg) [**PayPal**](https://paypal.me/anodevru)