A very geeky command line translation tool.
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