diff --git a/.env.dev b/.env.dev index 840513c8..31de5659 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ # .env.dev NODE_ENV=dev #VUE_APP_DEV_IP=demo.casaos.io -VUE_APP_DEV_IP=10.0.0.90 +VUE_APP_DEV_IP=10.0.0.85 # VUE_APP_DEV_IP=10.147.20.1 # VUE_APP_DEV_IP=192.168.2.15 # VUE_APP_DEV_IP=192.168.2.219 diff --git a/src/App.vue b/src/App.vue index e3d893ca..13d34d15 100644 --- a/src/App.vue +++ b/src/App.vue @@ -83,6 +83,7 @@ export default { setInitLang() { let lang = localStorage.getItem('lang') ? localStorage.getItem('lang') : this.getLangFromBrowser() lang = lang.includes("_") ? lang : "en_us"; + lang = lang.toLowerCase(); this.setLang(lang) }, /** @@ -99,7 +100,8 @@ export default { console.log('socket connected'); }, "casaos-ui:topbar:dashboardsetting_language"(res) { - this.setLang(res.Properties.casaos_lang) + const lang = res.Properties.casaos_lang.toLowerCase(); + this.setLang(lang) }, }, }