npm
module which wraps @vitalets/google-translate-api and allows to use it as CLI.
npm install -g @argshook/translate
yarn global add @argshook/translate
Usage: translate --from <lang> --to <lang> 'phrase to translate'
Options:
--version Show version number [boolean]
-f, --from Language to translate from [string]
-t, --to Language to translate to. Default is English
[string] [default: "en"]
-l, --languages List of all available languages [boolean]
--help Show help [boolean]
$ translate --from uk 'Слава Україні!'
Glory to Ukraine!
$ translate --to ru "it's not a special operation"
Это не специальная операция
git clone [email protected]:argshook/translate.git
cd translate
npm install
node src/index.js