From 00ae2dc6a9657416a95e08e845609ea31559ccda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 8 Dec 2021 11:27:06 +0100 Subject: [PATCH] fix(virtual-backgrounds) make error message translatable --- lang/main.json | 1 + react/features/stream-effects/virtual-background/index.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/main.json b/lang/main.json index 339d129fc..236326c8c 100644 --- a/lang/main.json +++ b/lang/main.json @@ -418,6 +418,7 @@ "desktopShareError": "Could not create desktop share", "desktopShare":"Desktop share", "webAssemblyWarning": "WebAssembly not supported", + "webAssemblyWarningDescription": "WebAssembly disabled or not supported by this browser", "backgroundEffectError": "Failed to apply background effect." }, "feedback": { diff --git a/react/features/stream-effects/virtual-background/index.js b/react/features/stream-effects/virtual-background/index.js index e1de56d52..bc56dcd83 100644 --- a/react/features/stream-effects/virtual-background/index.js +++ b/react/features/stream-effects/virtual-background/index.js @@ -65,10 +65,10 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d titleKey: 'virtualBackground.backgroundEffectError' }, NOTIFICATION_TIMEOUT_TYPE.LONG)); } else { - logger.error('Looks like WebAssembly is disabled or not supported on this browser'); + logger.error('Looks like WebAssembly is disabled or not supported on this browser', err); dispatch(showWarningNotification({ titleKey: 'virtualBackground.webAssemblyWarning', - description: 'WebAssembly disabled or not supported by this browser' + descriptionKey: 'virtualBackground.webAssemblyWarningDescription' }, NOTIFICATION_TIMEOUT_TYPE.LONG)); }