fix(virtual-backgrounds) make error message translatable
This commit is contained in:
parent
a182f53cdc
commit
00ae2dc6a9
|
@ -418,6 +418,7 @@
|
||||||
"desktopShareError": "Could not create desktop share",
|
"desktopShareError": "Could not create desktop share",
|
||||||
"desktopShare":"Desktop share",
|
"desktopShare":"Desktop share",
|
||||||
"webAssemblyWarning": "WebAssembly not supported",
|
"webAssemblyWarning": "WebAssembly not supported",
|
||||||
|
"webAssemblyWarningDescription": "WebAssembly disabled or not supported by this browser",
|
||||||
"backgroundEffectError": "Failed to apply background effect."
|
"backgroundEffectError": "Failed to apply background effect."
|
||||||
},
|
},
|
||||||
"feedback": {
|
"feedback": {
|
||||||
|
|
|
@ -65,10 +65,10 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
|
||||||
titleKey: 'virtualBackground.backgroundEffectError'
|
titleKey: 'virtualBackground.backgroundEffectError'
|
||||||
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
||||||
} else {
|
} 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({
|
dispatch(showWarningNotification({
|
||||||
titleKey: 'virtualBackground.webAssemblyWarning',
|
titleKey: 'virtualBackground.webAssemblyWarning',
|
||||||
description: 'WebAssembly disabled or not supported by this browser'
|
descriptionKey: 'virtualBackground.webAssemblyWarningDescription'
|
||||||
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue