fix(virtual-backgrounds) make error message translatable

This commit is contained in:
Saúl Ibarra Corretgé 2021-12-08 11:27:06 +01:00 committed by Saúl Ibarra Corretgé
parent a182f53cdc
commit 00ae2dc6a9
2 changed files with 3 additions and 2 deletions

View File

@ -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": {

View File

@ -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));
}