Skip to content

This is an example of how to translate using Google Translate via google-cloud.

License

Notifications You must be signed in to change notification settings

converseai-extensions/GoogleTranslate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleTranslate

This is an example of how to translate using Google Translate via google-cloud.

NOTE: This example requires a Google Cloud account with access to the Google Translate API.

Prerequisites

  1. Ensure you have an account with Converse.AI
  2. Converse.AI extensions run on Node.JS v6.11.1 on Alpine Linux so ensure your node development environment matches this setup. We recommend installing Node.JS via Node Version Manager (NVM).
  3. Install and Authorize Converse.AI CLI tool.

Install

  1. Clone repo
  2. Initialize extension by running converse-cli plugin init from your project root.
  3. Set up Google Translate project.
    1. In the Cloud Platform Console, go to the Projects page and select or create a new project – Google Projects Page
    2. Enable billing for your project – Google Billing Page
    3. Enable the Cloud Translation API – Google Cloud Translation API
    4. Go to Credentials and create a new Service account key and download the JSON file.
    5. Rename the file credentials.json and add it to the project root.
  4. Run npm test from your project root to ensure everything was initialized correctly.
  5. Deploy the plugin to your Converse.AI account by running converse-cli deploy from your project root.
  6. If there are no errors, the plugin should be available under "User" in the left hand menu of the designer.

About

This is an example of how to translate using Google Translate via google-cloud.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published