Japanese <-> English translate in terminal
- Service credentials
- username (different from your Bluemix account)
export T_WATSON_LANGUAGE_TRANSLATOR_API_USERNAME=<Your Watson Language Translator API username>
- password (different from your Bluemix account)
export T_WATSON_LANGUAGE_TRANSLATOR_API_PASSWORD=<Your Watson Language Translator API password>
- username (different from your Bluemix account)
You can download binary from release page and place it in $PATH
directory.
t [input text]
or
echo [input text] | t
option:
-v --version: show version
t translates input text specified by argument or STDIN using Watson Language Translation API.
Source language will be automatically detected.
export T_WATSON_LANGUAGE_TRANSLATOR_API_USERNAME=<Your Watson Language Translator API username>
export T_WATSON_LANGUAGE_TRANSLATOR_API_PASSWORD=<Your Watson Language Translator API password>
Example:
$ t Good morning!
おはようございます!
$ t おはようございます!
Good morning!
- No available in
mintty
😭 (isatty() not working) - The text must be the UTF-8 when using a pipe input
- exec
echo "UTF-8 text" | t
- exec
- unix shell(e.g. bash, zsh)
- msys2 on windows (or WSL)
- golang >= 1.7
- make
- glide
- docker
- editor/IDE with editorconfig plugin
- github token
Many thanks!