ms-translator-cli
v0.0.0
Published
The command line tool of Microsoft translator
Downloads
6
Readme
MS Translator CLI
Install
- install Node.js
./install.sh
Usage
Configuration
- sign up for Microsoft Translator from webpage
- register the application from webpage
- obtain client_id and client_secret
- write configuration file (
~/.mstclirc
) as follows.
to: <default language (e.g. ja, en)>
from: <default language (e.g. ja, en)>
client_id: <client_id>
client_secret: <client_secret>
CLI
- to translate the words.
$ mstcli -f en -t ja This is a sample sentence.
- to translate the file
$ cat file | mstcli -f en -t ja