cn-translator-cli
Translator for Chinese command-line interfaces
Inspired by <axetroy/translate-cli>
Installation
npm install -g cn-translator-cli
Usage
tfc is short for Translator for Chinese
$ tfc -h
Usage: tfc [options] [contents...]
translator for Chinese
Options:
-h, --help output usage information
-V, --version output the version number
-f, --from <lang> From Language, short locale name(e.g. en, zh)
-t, --to <lang> To Language, short locale name(e.g. zh, en)
-p, --platform <platform> Translation platform(e.g. baidu, youdao, google
Example
$ tfc 你好世界
$ tfc 'Hello world'
License
The MIT License