diff --git a/src/i18n/index.js b/src/i18n/index.js index 9b7d364..cdfa7d9 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -26,14 +26,12 @@ function getBrowserLanguage() { return 'en' // 默认中文,而不是英语 } -// 获取存储的语言或浏览器语言 -// const savedLanguage = 'zh' -// localStorage.setItem('language', 'zh') -const savedLanguage = localStorage.getItem('language') || getBrowserLanguage() +// 直接设为英文 +const savedLanguage = 'en' const i18n = createI18n({ legacy: false, // 使用 Composition API locale: savedLanguage, - fallbackLocale: 'zh', // 备用语言 + fallbackLocale: 'en', // 备用语言也设为英文 messages: { en, zh, diff --git a/src/views/businessintroduction/size1440/index.vue b/src/views/businessintroduction/size1440/index.vue index 5cfe605..b9431ad 100644 --- a/src/views/businessintroduction/size1440/index.vue +++ b/src/views/businessintroduction/size1440/index.vue @@ -160,13 +160,13 @@ onUnmounted(() => { {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/businessintroduction/size1920/index.vue b/src/views/businessintroduction/size1920/index.vue index 5cfe605..b9431ad 100644 --- a/src/views/businessintroduction/size1920/index.vue +++ b/src/views/businessintroduction/size1920/index.vue @@ -160,13 +160,13 @@ onUnmounted(() => { {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/companyprofil/size1440/index.vue b/src/views/companyprofil/size1440/index.vue index b6a2116..74f7ba5 100644 --- a/src/views/companyprofil/size1440/index.vue +++ b/src/views/companyprofil/size1440/index.vue @@ -316,13 +316,13 @@ onUnmounted(() => { {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/companyprofil/size1920/index.vue b/src/views/companyprofil/size1920/index.vue index b6a2116..74f7ba5 100644 --- a/src/views/companyprofil/size1920/index.vue +++ b/src/views/companyprofil/size1920/index.vue @@ -316,13 +316,13 @@ onUnmounted(() => { {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/companyprofildetail/size1440/index.vue b/src/views/companyprofildetail/size1440/index.vue index e8eb008..56258ed 100644 --- a/src/views/companyprofildetail/size1440/index.vue +++ b/src/views/companyprofildetail/size1440/index.vue @@ -43,13 +43,13 @@ {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/companyprofildetail/size1920/index.vue b/src/views/companyprofildetail/size1920/index.vue index d0464fb..39f856a 100644 --- a/src/views/companyprofildetail/size1920/index.vue +++ b/src/views/companyprofildetail/size1920/index.vue @@ -43,13 +43,13 @@ {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/home/size1440/index.vue b/src/views/home/size1440/index.vue index d7ae513..82265ce 100644 --- a/src/views/home/size1440/index.vue +++ b/src/views/home/size1440/index.vue @@ -444,13 +444,13 @@ watch( {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/home/size1920/index.vue b/src/views/home/size1920/index.vue index 6aa8309..336fedc 100644 --- a/src/views/home/size1920/index.vue +++ b/src/views/home/size1920/index.vue @@ -434,13 +434,13 @@ watch( {{ t("home.nav.investor") }}
-
{{ currentLanguageLabel }}
-
+ -->
diff --git a/src/views/investor/size1440/index.vue b/src/views/investor/size1440/index.vue index fa1db2d..c4fbc1f 100644 --- a/src/views/investor/size1440/index.vue +++ b/src/views/investor/size1440/index.vue @@ -344,7 +344,7 @@ const state = reactive({ {{ t("home.nav.investor") }}
-
- + --> diff --git a/src/views/investor/size1920/index.vue b/src/views/investor/size1920/index.vue index 0f7cc26..76aa1d0 100644 --- a/src/views/investor/size1920/index.vue +++ b/src/views/investor/size1920/index.vue @@ -344,7 +344,7 @@ const state = reactive({ {{ t("home.nav.investor") }}
-
- + --> diff --git a/src/views/investorhandbook/size1440/index.vue b/src/views/investorhandbook/size1440/index.vue index 55918be..21f5bbb 100644 --- a/src/views/investorhandbook/size1440/index.vue +++ b/src/views/investorhandbook/size1440/index.vue @@ -42,7 +42,7 @@ {{ t("home.nav.investor") }}
-
- + --> diff --git a/src/views/investorhandbook/size1920/index.vue b/src/views/investorhandbook/size1920/index.vue index 4fb0e46..a1f4894 100644 --- a/src/views/investorhandbook/size1920/index.vue +++ b/src/views/investorhandbook/size1920/index.vue @@ -42,7 +42,7 @@ {{ t("home.nav.investor") }}
-
- + -->