Skip to content

archervanderwaal/jadetrans

Repository files navigation

JadeTrans Usage

A very geeky command line translation tool.

Build Status MIT licensed Coverage Status Go Report Card

JadeTrans Usage

Features

  • Chinese <=> English
  • Speech
  • Others language support
  • Google translation engine

Installation

Go

go get -u github.com/archervanderwaal/jadetrans

jadetrans -h

Usage

Configuration

cd $HOME/.jadetrans
vim jadetrans.yaml
# add appKey and appSecret to jadetrans.yaml
# exp:
# youdao:
#   appKey: 
#   appSecret: 

If you don't have appKey and appSecret translated by youdao, go here and learn how to get appkey and appsecret translated by youdao.

Query

jadetrans <words>

Select engine

jadetrans <words> -e=youdao

Speech

jadetrans <words> -voice=1
#or
jadetrans <words> -voice=0