1.4.22 • Published 11 months ago
@opentranslate2/azure v1.4.22
@opentranslate/caiyun
caiyun translator with OpenTranslate API.
Installation
Yarn
yarn add @opentranslate/caiyunNPM
npm i @opentranslate/caiyunUsage
import Caiyun from '@opentranslate/caiyun'
const caiyun = new Caiyun({
config: {
//please refer to https://fanyi.caiyunapp.com/#/api
token: ""
}
});
caiyun.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.