Setting Up Google Translate

Google Developers Console configuration for Google Translate API

Google Translate is a community content translation tool that allows you (and your community members) to translate user-generated content within a CMNTY Platform. When Google Translate is activated, a flag icon will appear next to content on the front-end of your CMNTY Platform. Click on the flag and choose the flag associated with the language that you wish to translate your content to.

  1. Go to https://cloud.google.com/.
  2. Sign into your Google Account.
  3. Select Go to my console.
  4. In the project overview, you’ll create a new project. Press the Create Project button. Fill in Project Name & Project ID (it does not matter what you write there, however, it’s advised to use some obvious name to keep everything neat) and then press the Create button.
  5. Your new project will be created, and you’ll automatically be redirected to your new project overview.
  6. From the menu on left, select APIs & Auth. A list of all available APIs will be shown.
  7. Find Translate API and enable it by turning it ON. Click Translate API to open it.
  8. Select Credentials from the menu on the left, and then in the section called Public API access, press the Create new key button.
  9. From the modal window that pops up, select Browser key.
  10. A new modal will appear with options that let you set allowed domains for use with your Translate API. We strongly advise that you fill this in.
  11. Confirm settings by pressing the Create button.
  12. In the Public API access section, you will see a newly created entry. Copy your API key so that you can add it, later, into your CMNTY Platform settings.

Since Google Translate API is a paid service, in order to be able to use it, you’ll have to enable billing information for your account. If you have not already done this, then:

  1. Go back to Console overview (https://cloud.google.com/console/project)
  2. From the menu on the left, select Billing.
  3. The Set Up Your Billing Profile form will appear. Use this form to enable your billing profile so that you can continue with the Translate API settings in your CMNTY Platform.

CMNTY Platform configuration for Google Translate API

  1. Open up the Admin section in your CMNTY Platform and go to: Configure > Integrations > Google Translate.
  2. Fill in your API Key.
  3. Select which languages you’d like to translate user-generated content with using the Google Translate API.
  4. Confirm everything by pressing Save icon in the upper right-hand corner.google translate api

The Google Translate API is now enabled in your CMNTY Platform!

Explore our blog post about browser-based push notifications for your community platform!

Looking for something else?

  1. Using multiple languages
  2. Default language
  3. Language overrides

Was this article helpful?

Related Articles