Skip to content

WindomZ/cn-translator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cn-translator-cli

Translator for Chinese command-line interfaces

v0.1.2 status

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 你好世界
# >>> Hello world

$ tfc 'Hello world'
# >>> 你好世界

License

The MIT License

Releases

No releases published

Packages

No packages published