0.0.0 • Published 8 years ago

ms-translator-cli v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

MS Translator CLI

Install

  1. install Node.js
  2. ./install.sh

Usage

Configuration

  1. sign up for Microsoft Translator from webpage
  2. register the application from webpage
    • obtain client_id and client_secret
  3. 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

  1. to translate the words.
$ mstcli -f en -t ja This is a sample sentence.
  1. to translate the file
$ cat file | mstcli -f en -t ja