trans

translate-shell是一款命令行下翻译软件

安装

# arch
& sudo pacman -S translate-shell

命令

# 将目标语言翻译为默认语言
# 默认语言可以在 ~/.config/translate-shell/init.trans中加入:
# set target zh-CN
trans -b "世界你好"
# 将目标语言翻译为中文
trans -b -t zh "hello world"
# 使用google引擎翻译目标语言为中文
trans -b -e google -t zh "hello world"
# 同上,用bing引擎
trans -b -e bing -t zh "hello world"