Wondering what’s next for npm?Check out our public roadmap! »

    @opentranslate/google
    TypeScript icon, indicating that this package has built-in type declarations

    1.4.1 • Public • Published

    @opentranslate/google

    npm-version OpenTranslate

    Google translator with OpenTranslate API.

    Installation

    Yarn

    yarn add @opentranslate/google
    

    NPM

    npm i @opentranslate/google
    

    Usage

    import Google from '@opentranslate/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.

    Install

    npm i @opentranslate/google

    DownloadsWeekly Downloads

    3

    Version

    1.4.1

    License

    MIT

    Unpacked Size

    30.4 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar
    • avatar