Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

translate-gg-cn

Translate your sentences with translate.google.cn

Usage

  • As node module
var translate = require('translate-gg-cn')

translate({
  sl: 'zh-CN',  // 'zh-CN' defaulted
  tl: 'en',  // 'en' defaulted
  q: '我爱你'  // required
}, function(err, result){
  console.log(result)
})
  • As CLI tool
# install from npm
$ npm i -g translate-gg-cn

# t/translate/translate-gg-cn
$ t 我爱你
>> 译文: I love you

# "" pairs are optional
$ t --sl en --tl zh-TW "You and I are Wind Sand"
>> 译文: 你是風兒我是沙

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages