refactor(i18n): 移除多语言支持及相关组件,切换登录页文本为中文

- 删除英文和中文语言文件,去除国际化配置
- 移除语言切换组件 LangSwitch.vue
- 登录页中静态替换多语言文本为中文文本
- 站点头部登录、退出等文案替换为中文
- 更新 Nuxt 配置,移除 i18n 模块和相关配置
- 保持核心功能不变,只保留中文语言显示
This commit is contained in:
2026-04-26 02:39:43 +08:00
parent 2cbb77c4d1
commit 55f1cded6b
7 changed files with 41 additions and 717 deletions

View File

@@ -45,7 +45,7 @@ const WATCH_IGNORED = [
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
modules: ['@nuxt/content', '@nuxtjs/tailwindcss', '@nuxtjs/i18n', './modules/fix-tailwind-postcss'],
modules: ['@nuxt/content', '@nuxtjs/tailwindcss', './modules/fix-tailwind-postcss'],
app: {
head: {
titleTemplate: '%s - 决策咨询网',
@@ -63,23 +63,6 @@ export default defineNuxtConfig({
},
experimental: { appManifest: false },
// i18n 配置
i18n: {
locales: [
{ code: 'zh-CN', name: '简体中文', file: 'zh-CN.ts' },
{ code: 'en', name: 'English', file: 'en.ts' }
],
defaultLocale: 'zh-CN',
langDir: '../locales',
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_locale',
redirectOn: 'root',
alwaysRedirect: true,
fallbackLocale: 'zh-CN'
}
},
runtimeConfig: {
public: {
tenantId,