Sign inStart for free
ConvoWeb Package
IntroductionPrerequisitesInstallationProject setupQuick start
Package structureConfigurationComponentsHooksAPI integrationSocket events
OverviewReplace entire UIReplace componentsStyle with classNamesThemes & localePhone & video callingIn-call control barTranslationsFeatures
Everyday chat toolsEvent callbacksUnread badgeRich-text messagesPins, stars & datesMessage threadsMentionsCanvas & draftsNotificationsAdmin permissionsServer refusalsSession & token refresh
Host app integrationTroubleshootingFAQVersion historyBest practicesSupport & contact
Web packageCustomization

Translations

Replace any text the chat shows - buttons, menus, tooltips, aria-labels, toasts, empty states and the call screen.

Replace UI text (translations)

locale only formats dates and times. To translate text, pass translations. Every string has a key in CHAT_MESSAGES; pass only the keys you want to change and everything else stays English.

tsx
1import { CHAT_MESSAGES, type ChatTranslations } from "@convo-sco/sdk-react";2 3const es: ChatTranslations = {4  "common.cancel": "Cancelar",5  "socket.connected": "Conectado",6  "messages.empty.title": "Aún no hay mensajes",7  "header.lastSeen": "Visto por última vez {time}",8  "forward.recipientsSelected": "{count} destinatarios seleccionados",9};10 11<ChatMain {...chatConfig} translations={es} />

Placeholders, plurals, live updates

  • Placeholders. {name}, {count}, {time} and so on are filled in for you. Keep them in your text, in any position.
  • Plurals. Countable text has a singular …One key and a plural key, e.g. header.participantCountOne / header.participantCount.
  • Live updates. Pass a new object when the user switches language and the open chat re-renders. No remount needed.
  • Type-checked. ChatTranslations only accepts real keys, so a typo is a compile error, and typing "header. autocompletes them.
  • Finding a key. The full list (1032 keys with their English text) ships in the npm package as docx/TRANSLATIONS.md. Search it for the words you see in the chat and copy the key.

Key groups

PrefixScreen
common.*Shared words (Cancel, Close, Save…)
socket.*Connection status
notify.*Toasts
export.*Export chat
messages.*Message list, jump to date, new-messages divider
selection.*Selecting messages
message.*A single message (toolbar, attachments, previews)
composer.*Message box, slash commands, polls, voice
toolbar.*Formatting toolbar
search.*Search
filter.* / list.* / channelList.*Chat list, filters, folders
header.*Chat header and its drawers
saved.*Pinned and starred messages
sidebar.*Sidebar, new chat, account settings
thread.* / mentions.*Threads and Mentions
forward.*Forwarding
canvas.*Canvas
imageEditor.*Image editor
translate.*Message translation
savedReplies.*Saved replies
shortcuts.*Keyboard shortcuts
call.*Calls
notifications.*Notification settings
session.*Signed out / session ended
error.* / lazy.* / chat.*Error screen, loading panels, other

In your own components (useChatT)

useChatT() returns the same translator. It re-renders when translations changes and falls back to English outside the chat. useChatLocale().t is the same function; chatT is for code that is not a component, such as a toast fired from a callback.

tsx
1import { useChatT } from "@convo-sco/sdk-react";2 3function MyEmptyState() {4  const t = useChatT();5  return <p>{t("messages.empty.title")}</p>;6}

What stays English

On purpose: text sent to the server for every participant (for example the whiteboard "PDF uploaded" system message), host event payloads such as SessionEnd, and onError messages, which are meant for your logs.

PreviousIn-call control barNextFeatures

On this page

Replace UI text (translations)Placeholders, plurals, live updatesKey groupsIn your own components (useChatT)What stays English
Back to top