New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

translate-tool

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translate-tool

a tranlate tool use in cli

latest
Source
npmnpm
Version
1.2.12
Version published
Maintainers
1
Created
Source

windows 系统下可能有问题,正在努力解决中...

命令行翻译工具,提供简单翻译。

安装

$ npm install translate-tool -g

mac 环境下,有可能需要加上 sudo,即

$ sudo npm install translate-tool -g

使用

  • 支持多种语言翻译。未设置语言,则默认 中/英 互译。
  • 文本模式
    fy 后跟上需要翻译的文本。长度为最大2000字符(包含空格)。此命令为普通文本翻译: 例:fy this is a book
  • 词典模式 (只支持中英/英英, 即目标语言均为英语)
    dict 后跟上需要翻译的单词,执行后输出单词词性,音标,释义,例句等: 例:dict book
  • 设置目标语言(只支持翻译模式) -t [lan] 例:fy this is a book -t zh

常见语种列表

语言代码
简体中文zh
繁体中文zh-TW
英语en
法语fr
德语de
日语ja
韩语ko
泰语th
俄语ru
荷兰语nl
西班牙语es
阿拉伯语ar
葡萄牙语pt
意大利语it

更多语言参照:支持语言

Keywords

翻译

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts