A CLI translator based on the API from public areas and Node.js.
- Interactive mode, auto language detection
- Simple spelling correction
- Based on the API from Baidu Translate (currently)
- Only support English and Chinese (currently)
npm install -g translator-me
There are two modes while using this translator.
Usage: translator-me [options] Options: -v, --version output the version number -i, --interactive interactive mode -f, --from [value] from language (default: "en") -t, --to [value] to language (default: "zh") -q, --query <value> query text -h, --help display help for command
Interactive mode supports setting different destination language, and the source language is been automatically detected.
set en, means the destination language is English
set zh, means the destination language is Chinese
set auto, means that if the source language is English, the destination language will be Chinese, and vice versa.
q, means quit.