Skip to content

argshook/translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Google Translate CLI Tool

npm module which wraps @vitalets/google-translate-api and allows to use it as CLI.

Install

With npm

npm install -g @argshook/translate

With yarn

yarn global add @argshook/translate

Use

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]

Examples

$ translate --from uk 'Слава Україні!'
Glory to Ukraine!
$ translate --to ru "it's not a special operation" 
Это не специальная операция

Contribute

git clone git@github.com:argshook/translate.git
cd translate
npm install
node src/index.js

About

A simple Google Translate CLI Tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published