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:
Google’s Translate API (recommended; $20 for 1 million characters)
Microsoft’s Translate API (includes free plan)
Once you have decided which API you would like to use, please follow the instructions accordingly:
You need to sign up for the Translate API service.
You need to add a billing account. Without adding this account, Google Translate will not work.
On login, click on settings tab and select Billing accounts. Now, click on Add billing account button.
Now, create a new Project.
On successful creation of the new project, click on APIs under APIs and auth.
Click on Translate API under Other popular APIs section.
Enable the API by clicking on Enable API button.
Click on Credentials under APIs and auth.
Click on Add credentials and select API key.
Select Browser key.
Fill the required details and click on Create button.
Copy the API key.
Go to CometChat Administration Panel –> Features –> Other Features –> Translate Conversations and click on the Configure icon besides the name.
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.
Then simply clear your browser cache and test the real-time translate feature with another user.
You need to sign up for the Microsoft Translator service. Depending on your requirements, you can select a Subscription.
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:
Once this is done, you need to configure the module.
Go to CometChat Administration Panel –> Features –> Other Features –> Translate Conversations and click on the Configure icon besides the name.
Enter your Client ID and Client Secret values which you filled earlier. Finally click on Update Settings button.
Then simply clear your browser cache and test the real-time translate feature with another user.
Not finding what you need?
The CometChat team is here to help!