Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Add detect translation freeze in interface config
Ilya Daynatovich209272f94067
diff --git a/interface_config.js b/interface_config.jsindex 1e07ad678c..54a547f010 100644--- a/interface_config.js+++ b/interface_config.js@@ -16,6 +16,7 @@ var interfaceConfig = { // eslint-disable-line no-unused-varsSHOW_POWERED_BY: false,GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,APP_NAME: "Jitsi Meet",+ LANG_DETECTION: false, // Allow i18n to detect the system languageINVITATION_POWERED_BY: true,/*** If we should show authentication block in profilediff --git a/modules/translation/translation.js b/modules/translation/translation.jsindex 5a39f83b69..6f3014dd5c 100644--- a/modules/translation/translation.js+++ b/modules/translation/translation.js@@ -83,6 +83,12 @@ module.exports = {let options = defaultOptions;let lang = getLangFromQuery() || settingsLang || config.defaultLanguage;+ let langDetection = interfaceConfig.LANG_DETECTION;++ if (!langDetection && !lang) {+ lang = DEFAULT_LANG;+ }+if (lang) {options.lng = lang;}