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
版权声明:本文为StromMaybin原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。