From 1001783d3c814668a60adccdf6497cc22703785e Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Thu, 13 Nov 2025 20:05:25 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BF=EF=B8=8F(frontend)=20enhance=20vocali?= =?UTF-8?q?zed=20indication=20of=20virtual=20background?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the virtual background effects tooltip and ARIA label with more descriptive and concise wording based on Sophie’s feedback. This helps all users, especially those using assistive technologies, by improving how each virtual background is vocalized. --- .../effects/EffectsConfiguration.tsx | 20 +++++++++++++------ src/frontend/src/locales/de/rooms.json | 14 +++++++++++-- src/frontend/src/locales/en/rooms.json | 14 +++++++++++-- src/frontend/src/locales/fr/rooms.json | 14 +++++++++++-- src/frontend/src/locales/nl/rooms.json | 14 +++++++++++-- 5 files changed, 62 insertions(+), 14 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx b/src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx index 48591bdd..33a57d33 100644 --- a/src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx +++ b/src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx @@ -157,6 +157,10 @@ export const EffectsConfiguration = ({ return t(`${type}.${isSelected(type, options) ? 'clear' : 'apply'}`) } + const tooltipVirtualBackground = (index: number): string => { + return t(`virtual.descriptions.${index}`) + } + return (
await toggleEffect(ProcessorType.VIRTUAL, { diff --git a/src/frontend/src/locales/de/rooms.json b/src/frontend/src/locales/de/rooms.json index ce9bc9c8..c77b1356 100644 --- a/src/frontend/src/locales/de/rooms.json +++ b/src/frontend/src/locales/de/rooms.json @@ -240,8 +240,18 @@ }, "virtual": { "title": "Virtueller Hintergrund", - "apply": "Virtuellen Hintergrund aktivieren", - "clear": "Virtuellen Hintergrund deaktivieren" + "selectedLabel": "Hintergrund angewendet:", + "apply": "Ersetze deinen Hintergrund:", + "descriptions": { + "0": "Gerilltes Holzmöbel", + "1": "Besprechungsraum", + "2": "Loft mit schwarzer Glaswand", + "3": "Esszimmer", + "4": "Holzregale", + "5": "Holztreppe", + "6": "Graue Bibliothek", + "7": "Kaffeetheke" + } }, "faceLandmarks": { "title": "Visuelle Effekte", diff --git a/src/frontend/src/locales/en/rooms.json b/src/frontend/src/locales/en/rooms.json index 79a778cf..4f0c071b 100644 --- a/src/frontend/src/locales/en/rooms.json +++ b/src/frontend/src/locales/en/rooms.json @@ -240,8 +240,18 @@ }, "virtual": { "title": "Virtual background", - "apply": "Enable virtual background", - "clear": "Disable virtual background" + "selectedLabel": "Background applied:", + "apply": "Replace your background:", + "descriptions": { + "0": "Fluted wooden furniture", + "1": "Meeting room", + "2": "Loft with black glass partition", + "3": "Dining room", + "4": "Wooden shelves", + "5": "Wooden staircase", + "6": "Gray library", + "7": "Coffee counter" + } }, "faceLandmarks": { "title": "Visual Effects", diff --git a/src/frontend/src/locales/fr/rooms.json b/src/frontend/src/locales/fr/rooms.json index 8ad8d146..c0115d80 100644 --- a/src/frontend/src/locales/fr/rooms.json +++ b/src/frontend/src/locales/fr/rooms.json @@ -240,8 +240,18 @@ }, "virtual": { "title": "Arrière-plan virtuel", - "apply": "Activer l'arrière-plan virtuel", - "clear": "Désactiver l'arrière-plan virtuel" + "selectedLabel": "Arrière-plan appliqué :", + "apply": "Remplacer votre arrière plan :", + "descriptions": { + "0": "Meuble cannelé en bois", + "1": "Salle de réunion", + "2": "Loft avec verrière noire", + "3": "Salle à manger", + "4": "Étagères en bois", + "5": "Escalier en bois", + "6": "Bibliothèque grise", + "7": "Comptoir de café" + } }, "faceLandmarks": { "title": "Effets visuels", diff --git a/src/frontend/src/locales/nl/rooms.json b/src/frontend/src/locales/nl/rooms.json index c4d5f9c2..66e43c0f 100644 --- a/src/frontend/src/locales/nl/rooms.json +++ b/src/frontend/src/locales/nl/rooms.json @@ -240,8 +240,18 @@ }, "virtual": { "title": "Virtuele achtergrond", - "apply": "Virtuele achtergrond inschakelen", - "clear": "Virtuele achtergrond uitschakelen" + "selectedLabel": "Achtergrond toegepast:", + "apply": "Vervang je achtergrond:", + "descriptions": { + "0": "Geprofileerd houten meubel", + "1": "Vergaderruimte", + "2": "Loft met zwarte glaswand", + "3": "Eetkamer", + "4": "Houten planken", + "5": "Houten trap", + "6": "Grijze bibliotheek", + "7": "Koffiebar" + } }, "faceLandmarks": { "title": "Visuele effecten",