@opentranslate2/aliyun
v1.4.21
Published
Aliyun translator with OpenTranslate API.
Downloads
517
Maintainers
Readme
@opentranslate/aliyun
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.