Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes settings panel translation.

damencho4e9450f2008d
diff --git a/modules/UI/side_pannels/settings/SettingsMenu.js b/modules/UI/side_pannels/settings/SettingsMenu.js
index 7e566e79f6..2e063cf8f7 100644
--- a/modules/UI/side_pannels/settings/SettingsMenu.js
+++ b/modules/UI/side_pannels/settings/SettingsMenu.js
@@ -61,6 +61,9 @@ const htmlStr = `
function initHTML() {
$(`#${sidePanelsContainerId}`)
.append(htmlStr);
+ // make sure we translate the panel, as adding it can be after i18n
+ // library had initialized and translated already present html
+ APP.translation.translateElement($(`#${sidePanelsContainerId}`));
}
/**
@@ -162,6 +165,9 @@ export default {
selectInput[0].dataset.i18n =
`languages:${APP.translation.getCurrentLanguage()}`;
+ // translate selectInput, which is the currently selected language
+ // otherwise there will be no selected option
+ APP.translation.translateElement(selectInput);
APP.translation.translateElement(selectEl);
APP.translation.addLanguageChangedListener(