1.5.1 • Published 1 year ago

@theowenyoung/google v1.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@theowenyoung/google

npm-version OpenTranslate

Google translator with OpenTranslate API.

Installation

Yarn

yarn add @theowenyoung/google

NPM

npm i @theowenyoung/google

Usage

import Google from '@theowenyoung/google'

const google = new Google({
  order: ['com', 'cn'],
  // search all at the same time
  concurrent: true,
  // googleapi as fallback
  apiAsFallback: true
})

google.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.