Home / Companies / Stream / Blog / Post Details
Content Deep Dive

Message Translation – i18n

Blog post from Stream

Post Details
Company
Date Published
Author
Tess G.
Word Count
427
Language
English
Hacker News Points
-
Summary

Stream Chat has introduced a message translation feature that allows users speaking different languages to communicate seamlessly in the same channel, either on-demand or automatically. This feature is not enabled by default, but users can request access through Stream's support team, after which it can automatically translate all messages or individual ones via an API endpoint. The translation process detects the source language automatically and updates the message for all users in the channel. The feature supports automatic translation, translating messages immediately as they are added to a channel, and works effectively in one-on-one or group conversations with two main languages. The system includes an internationalization (i18n) object that contains the original and translated message text in specified languages, making it adaptable with minimal development effort. However, the translation is limited to messages with up to 5,000 characters, does not apply to error messages or commands, and does not retroactively affect already translated messages if translation settings are changed.