Skip to content

Commit

Permalink
removed the locale popup for TAP, will convert it into a setting late…
Browse files Browse the repository at this point in the history
…r on
  • Loading branch information
deepansh96 committed Mar 19, 2024
1 parent c444f64 commit b8a0d9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/Config/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8a0d9c

Please sign in to comment.