Sendbird's auto-translation feature lets you send text messages in different languages. When sending a text message, set an array of language codes to the UserMessageCreateParams object, then pass the object as an argument to a parameter in the sendUserMessage() method to request messages to be translated into the desired languages. With this, you can add a real-time translation feature to your app. To enable this feature, contact our sales team.
To show the translated messages, use the userMessage.translations property, which has a Map object containing the language codes and translations as shown in the code below.