Aliyun translator with OpenTranslate API.
Yarn
yarn add @opentranslate/aliyun
NPM
npm i @opentranslate/aliyun
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)
See translator for more details.
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.