translate-commandline

2.0.1 • Public • Published

translate-commandline

A command line tool that you can translate everything!

NPM version NPM downloads

0eXJ8U.md.png

Install

npm install -g translate-commandline

Usage

translate <words> [tag] [options]
t <words> [tag] [options]

It supports translation of many languages power by cn.bing.com.

Supports language list:

Tag language
en English
ru Русский
tr Türkçe
es Español
ko 한국어
sv Svenska
it Italiano
id Bahasa Indonesia
pl Polski
ja 日本語
fr Français
he עברית
hu Magyar
vi Tiếng Việt
th ไทย
sk Slovenčina
te తెలుగు
uk Українська
bg Български
cs Čeština
de Deutsch
nl Nederlands
nb Norsk
fa فارسی
ar العربية
zh-Hant 繁體中文
zh-Hans 简体中文

If words is English or Chinese, you can omit into parameter.

Using "-p" or "--proception" option will play the English pronunciation if word is English and mplayer is installed.

For example:

$ translate "day by day"
-  day by day  ~  cn.bing.com
 
日复一日  [ rì fù yí rì ]
 
 
$ translate 伤心 ko
-  伤心  ~  cn.bing.com
 
슬프다.
 
$ t test -p
-  test   ~   cn.bing.com
 
test   美 [test]   英 [test]
 
  v.   试验;测试;检测;测验
  n.   试验;检测;考试;测验
 网络  检验;考验;睾酮(testosterone)
 
复数:tests  过去式:tested  现在分词:testing

Features

  • Translation of any languages
  • Support cn.bing.com
  • Support play the English pronunciation

Package Sidebar

Install

npm i translate-commandline

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

17.2 kB

Total Files

16

Last publish

Collaborators

  • like290