translate-commandline
v2.0.1
Published
A command line tool that you can translate everything!
Downloads
2
Maintainers
Readme
translate-commandline
A command line tool that you can translate everything!
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
- [x] Translation of any languages
- [x] Support cn.bing.com
- [x] Support play the English pronunciation