Skip to content

Mac中用命令行进行词典翻译 (fy word)

Tags:

参考

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

Leave a Reply

Your email address will not be published.