From 652ff8cfe26b9068a776c39132c0eb5440702894 Mon Sep 17 00:00:00 2001 From: gabriellsh <40830821+gabriellsh@users.noreply.github.com> Date: Tue, 17 Mar 2026 08:13:28 -0300 Subject: [PATCH] fix: Voice - Use correct translation keys and add missing ones (#39670) --- .changeset/late-pots-teach.md | 6 ++++++ packages/i18n/src/locales/en.i18n.json | 3 +++ packages/ui-voip/src/components/PeerInfo/useInfoSlots.ts | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/late-pots-teach.md diff --git a/.changeset/late-pots-teach.md b/.changeset/late-pots-teach.md new file mode 100644 index 0000000000000..77d715c51fb80 --- /dev/null +++ b/.changeset/late-pots-teach.md @@ -0,0 +1,6 @@ +--- +"@rocket.chat/i18n": patch +"@rocket.chat/ui-voip": patch +--- + +Fixes mismatched translations for Voice calling UI diff --git a/packages/i18n/src/locales/en.i18n.json b/packages/i18n/src/locales/en.i18n.json index c83d2ed1eb979..1426de4bb7c85 100644 --- a/packages/i18n/src/locales/en.i18n.json +++ b/packages/i18n/src/locales/en.i18n.json @@ -503,6 +503,7 @@ "All_users": "All users", "All_users_in_the_channel_can_write_new_messages": "All users in the channel can write new messages", "All_visible": "All visible", + "Allow": "Allow", "allow-external-voice-calls": "Allow External Voice Calls", "allow-external-voice-calls_description": "Permission to allow users to make and receive calls with users from external integrations.", "allow-internal-voice-calls": "Allow Internal Voice Calls", @@ -4392,6 +4393,7 @@ "Registration_status": "Registration status", "Registration_via_Admin": "Registration via Admin", "Regular_Expressions": "Regular Expressions", + "Reject": "Reject", "Reject_call": "Reject call", "Reject_invitation": "Reject invitation", "Reject_dm_invitation_description": "You're rejecting the invitation to join {{username}} in a conversation. This cannot be undone.", @@ -5801,6 +5803,7 @@ "VoIP_allow_and_call": "Allow and call", "VoIP_allow_and_accept": "Allow and accept", "VoIP_cancel_and_reject": "Cancel and reject", + "Voice": "Voice", "Voice_Call": "Voice Call", "Voice_Call_Extension": "Voice Call Extension", "Voice_and_omnichannel": "Voice and omnichannel", diff --git a/packages/ui-voip/src/components/PeerInfo/useInfoSlots.ts b/packages/ui-voip/src/components/PeerInfo/useInfoSlots.ts index d3a32181ce63e..a1a502916df31 100644 --- a/packages/ui-voip/src/components/PeerInfo/useInfoSlots.ts +++ b/packages/ui-voip/src/components/PeerInfo/useInfoSlots.ts @@ -23,7 +23,7 @@ const getMutedSlot = (muted: boolean, t: ReturnType['t']) const getHeldSlot = (held: boolean, t: ReturnType['t']) => { if (held) { return { - text: t('On hold'), + text: t('On_Hold'), type: 'info', } as const; }