Deepl translator with OpenTranslate API.
Yarn
yarn add @opentranslate/deepl
NPM
npm i @opentranslate/deepl
import Deepl from '@opentranslate/deepl'
const deepl = new Deepl({
config: {
//please refer to https://www.deepl.com/pro.html
auth_key: ""
}
})
deepl.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.