From b8a0d9c413a2f5ec80214251e0540b8dea4bb2dc Mon Sep 17 00:00:00 2001 From: Deepansh Mathur Date: Tue, 19 Mar 2024 10:28:20 +0530 Subject: [PATCH] removed the locale popup for TAP, will convert it into a setting later on --- src/services/Config/User.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/Config/User.js b/src/services/Config/User.js index cdd831b23..1845230a5 100644 --- a/src/services/Config/User.js +++ b/src/services/Config/User.js @@ -15,8 +15,11 @@ export default { setLocaleFromUserConfig() { // set the system locale from the user config let redirectId = setInterval(() => { + let activeWorkspace = store.state.auth.activeWorkspace; let userConfig = store.state.auth.config; - if (userConfig != null) { + if (activeWorkspace === "tap") { + i18n.global.locale = process.env.VUE_APP_I18N_LOCALE; + } else if (userConfig != null) { userConfig = JSON.parse(userConfig); i18n.global.locale = userConfig["locale"] || process.env.VUE_APP_I18N_LOCALE;