refactor(i18n): 移除多语言支持及相关组件,切换登录页文本为中文
- 删除英文和中文语言文件,去除国际化配置 - 移除语言切换组件 LangSwitch.vue - 登录页中静态替换多语言文本为中文文本 - 站点头部登录、退出等文案替换为中文 - 更新 Nuxt 配置,移除 i18n 模块和相关配置 - 保持核心功能不变,只保留中文语言显示
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user