October 28, 2019

Smash the language barrier: Announcing real-time message translation

The internet has connected the world in ways which no one could have imagined. How else could someone from Wales 🇬🇧 meet and talk with someone from Mumbai 🇮🇳 if not for an online chat?

And while many people in Mumbai speak excellent English, many do not. It has to make you wonder - how many more people would be chatting if language was not an obstacle? Could your chat application reach more people if no such language barrier existed?

We think so. After all, if Google Translate translates 100 billion words a day, there must be a demand. But having to copy and paste messages to an external translation service is unmanageable for your users, especially in a group chat. It simply takes too much time to let them participate in the conversation. Automated, real-time translation is the solution.

Announcing real-time message translation

I am pleased to announce a new CometChat extension for Android, iOS, and the web (JavaScript) which enables you to instantly translate messages. It works in 3 simple steps:

  1. Enable the extension in your dashboard
  1. When sending a message describe which languages you would like CometChat to translate the messages to with metadata:
  2. const message = new CometChat.TextMessage(
    "Anant", "Hi", CometChat.RECEIVER_TYPE.USER)

    const metadata = {
    "message_translation_languages": ["en","hi","ru"]

    CometChat.sendMessage(message).then(() => console.log("success"))
  1. Once you have completed step 2 you will now see one or more translations alongside each message:"@injected": {
    "extensions": {
    "message-translation": {
    "translations": [
    "message_translated": "हैलो दुनिया",
    "language_translated": "hi"
    "message_translated": "привет мир",
    "language_translated": "ru"
    "language_original": "en"

CometChat handles the translation of the messages and puts the result exactly where you expect it – right alongside the original message and message metadata. You'll have complete control over how you want to render the message. Perhaps you'll translate the message immediately, like we do in this video:

Or perhaps you take a page from Viber’s books and offer a slick tap to Translate button:


Another way to delight your users is by anticipating their preferred language. With CometChat, it’s possible to associate metadata, like a preferred language, with a user. (This might look something like user.metadata.preferredLanguage depending on what you call the property.) Based on this data, you can automatically request the message to be translated according to the recipient’s preference. Now, that's seriously thoughtful! Rest assured, there’s no limit to the number of messages you can translate and it won't slow the conversation down.

Having to copy and paste messages to an external translation service is unmanageable for your users, especially in a group chat. It simply takes too much time to let them take part in the conversation, which could very well have moved on by the time it took to understand the message. Automated, real-time translation is the solution. And it's not just about business either. Online communities are thriving and real-time translation allows everyone to explore new cultures, meet new people, and, ultimately, smash the language barrier.

Create a free account and enable real-time message translation today ✨.

At launch we support we support translation between the following 25 languages: Arabic, Chinese (Simplified), Chinese (Traditional), Czech, Danish, Dutch, English, Finnish, French, German, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Malay, Norwegian, Persian, Polish, Portuguese, Russian, Spanish, Swedish, and Turkish.