My Account | Buy CometChat

documentation

Real-time Translate

Selecting between Google and Microsoft

CometChat’s real-time translate feature can integrate with either Microsoft’s Translate API or Google’s Translate API. Below are the pricing details for each service:

Microsoft’s Translate API (includes free plan)

Google’s Translate API (only $20 for 1 million characters)

Once you have decided which API you would like to use, please follow the instructions accordingly:

Configuring Microsoft’s Translate API

You need to sign up for the Microsoft Translator service. Depending on your requirements, you can select a Subscription.

Microsoft’s Translate API Signup

Microsoft's Translate API Signup

After completing the signup, you need to register your application at https://datamarket.azure.com/developer/applications/

Make sure that your Client ID and Client Secret are unique values. Sample information:

Register your applicat

Once this is done, you need to configure the module.

Go to CometChat Administration Panel -> Modules -> Real-time Translate -> config

Enter your Client ID and Client Secret values which you filled earlier. Finally click on Update Settings button.

Real-time Translate Settings

Then simply clear your browser cache and test the real-time translate feature with another user.

Configuring Google’s Translate API

You need to sign up for the Translate API service.

Google’s Translate API Signup

On login, go to the Services tab and activate Translate API

Google's Translate API Signup

Now, go to the Billng tab and make sure billing is enabled. Without adding this information, Google Translate will not work.

Go to the API access tab and copy the API key from the Simple API Access section.

Google's Translate API Key

Go to CometChat Administration Panel -> Modules -> Real-time Translate -> config

Leave the Client ID and Client Secret values as blank, set Use Google Translate API to Yes and add the key which you copied earlier. Finally click on Update Settings button.

Real-time Translate Settings

Then simply clear your browser cache and test the real-time translate feature with another user.