@theowenyoung/tencent
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

@theowenyoung/tencent

npm-version OpenTranslate

Tencent translator with OpenTranslate API.

Installation

Yarn

yarn add @theowenyoung/tencent

NPM

npm i @theowenyoung/tencent

Usage

import Tencent from '@theowenyoung/tencent'

const tencent = new Tencent({
  config: {
    //please refer to https://cloud.tencent.com/document/api/213/30654
    secretId: "",
    secretKey: ""
  }
})

tencent.translate('text').then(console.log)

API

See translator for more details.

Disclaimer

The material and source code from this package are for study and research purposes only. Any reliance you place on such material or source code are strictly at your own risk.

Package Sidebar

Install

npm i @theowenyoung/tencent

Weekly Downloads

1

Version

1.5.1

License

MIT

Unpacked Size

28.4 kB

Total Files

15

Last publish

Collaborators

  • theowenyoung