参考
https://github.com/afc163/fanyi
Steps
# install
sudo npm install -g fanyi
# Translation data is fetched from iciba.com and fanyi.youdao.com
# and only support translation between Chinese and English.
# use
fy word
fanyi word
fy 中文也可以
# 配置
cat > ~/.fanyirc <<EOF
{
"iciba": true,
"youdao": true,
"dictionaryapi": false,
"say": true,
"color": true
}
EOF


It’s amazing for me to have a website, which is good in favor of my know-how.
thanks admin