Translator for Chinese command-line interfaces
Inspired by <axetroy/translate-cli>
npm install -g cn-translator-cli
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
$ tfc 你好世界
# >>> Hello world
$ tfc 'Hello world'
# >>> 你好世界
The MIT License