0.0.4 • Published 8 months ago

@simon_he/translate v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

translate

快速的百度翻译实现

Usage

translate('hello', {
  appid: '百度appid',
  secret: '百度secret',
  from: 'en', // 默认 en
  to: 'zh' // 默认 zh
}).then((res) => {
  console.log(res) // 你好
}).catch((err) => {
  console.log(err)
})

Install

npm i @simon_he/translate

License

MIT License © 2022 Simon He

sponsors

0.0.3

8 months ago

0.0.4

8 months ago

0.0.2

1 year ago

0.0.1

1 year ago