The tranpeer
CLI tool handles translation of sentences in English language to any other language provided by the Google translate API for you in your terminal.
To install the CLI tool on your machine:
npm install tranpeer
// To install globally on your machine
npm install -g tranpeer
To run the CLI tool locally, you can just use the following example command:
tranpeer -l "pt" -s "I want to play football"
[x]--version Show version number [boolean] [x]-l, --language Translate to language [string] [x]-s, --sentence Sentence to be translated [string] [x]--help Show help [boolean]