trt is a translation tool that can be used in the command line.
npm install -g trt
yarn global add trtUsing trt need you to register a text translation service in youdao.Then you just need to input some text follow trt command. If you're using it for the first time, it will need you input your appKey and secret.
trt [text]