@opentranslate/sogou
v1.4.2
Published
Sogou translator with OpenTranslate API.
Downloads
58
Readme
@opentranslate/sogou
Sogou translator with OpenTranslate API.
Installation
Yarn
yarn add @opentranslate/sogou
NPM
npm i @opentranslate/sogou
Usage
import Sogou from '@opentranslate/sogou'
//please refer to https://deepi.sogou.com/?from=translatepc
const sogou = new Sogou(
config: {
pid: "your pid",
key: "your key"
}
)
sogou.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.