@opentranslate2/aliyun
TypeScript icon, indicating that this package has built-in type declarations

1.4.22 • Public • Published

@opentranslate/aliyun

npm-version OpenTranslate

Aliyun translator with OpenTranslate API.

Installation

Yarn

yarn add @opentranslate/aliyun

NPM

npm i @opentranslate/aliyun

Usage

import Aliyun from '@opentranslate/aliyun'

//Please refer to https://help.aliyun.com/zh/machine-translation/developer-reference/api-reference-machine-translation-universal-version-call-guide?spm=5176.15007269.console-base_help.dexternal.1afe5d78DUvEPh
const aliyun = new Aliyun({
    config: {
        appid: "",
        key: ""
    }
})

aliyun.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 @opentranslate2/aliyun

Weekly Downloads

14

Version

1.4.22

License

MIT

Unpacked Size

22.5 kB

Total Files

11

Last publish

Collaborators

  • allentown521