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.
- Ensure you have an account with Converse.AI
- 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). - Install and Authorize Converse.AI CLI tool.
- Clone repo
- Initialize extension by running
converse-cli plugin init
from your project root. - Set up Google Translate project.
- In the Cloud Platform Console, go to the Projects page and select or create a new project – Google Projects Page
- Enable billing for your project – Google Billing Page
- Enable the Cloud Translation API – Google Cloud Translation API
- Go to Credentials and create a new Service account key and download the JSON file.
- Rename the file
credentials.json
and add it to the project root.
- Run
npm test
from your project root to ensure everything was initialized correctly. - Deploy the plugin to your Converse.AI account by running
converse-cli deploy
from your project root. - If there are no errors, the plugin should be available under "User" in the left hand menu of the designer.