feat(i18n): 将前端用户可见中文硬编码改为四语言
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
dce915ea30
commit
ac7b53a523
105 files changed
+2928
-647
No files matched your search
@@ -1,6 +1,8 @@
|
||||
/**
|
||||
* app/router/routes/workspace.routes.ts
|
||||
* 工作台路由表:/workspace 布局壳 + 各业务子页面懒加载。
|
||||
* 依赖:vue-router;meta.title 存 i18n key(workspace.*),由 guards 解析为 document.title。
|
||||
* 逻辑:WorkspaceLayout 嵌套应用首页、知识库、排程、反馈等子页。
|
||||
*/
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
@@ -8,14 +10,14 @@ export const workspaceRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/workspace',
|
||||
component: () => import('@/features/workspace/views/WorkspaceLayout.vue'),
|
||||
meta: { title: 'AI工作台' },
|
||||
meta: { title: 'workspace.title' },
|
||||
children: [
|
||||
{ path: '', redirect: '/workspace/applications' },
|
||||
{
|
||||
path: 'profile',
|
||||
name: 'workspace-profile',
|
||||
component: () => import('@/features/user/views/UserProfilePage.vue'),
|
||||
meta: { title: '个人中心' },
|
||||
meta: { title: 'workspace.nav.profile' },
|
||||
},
|
||||
{
|
||||
path: 'applications',
|
||||
@@ -33,37 +35,37 @@ export const workspaceRoutes: RouteRecordRaw[] = [
|
||||
path: 'knowledge-base',
|
||||
name: 'workspace-knowledge-base',
|
||||
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
||||
meta: { title: '知识库' },
|
||||
meta: { title: 'workspace.nav.knowledgeBase' },
|
||||
},
|
||||
{
|
||||
path: 'knowledge-base/groups/:groupId',
|
||||
name: 'workspace-knowledge-base-group',
|
||||
component: () => import('@/features/workspace/pages/KnowledgeBasePage.vue'),
|
||||
meta: { title: '知识库' },
|
||||
meta: { title: 'workspace.nav.knowledgeBase' },
|
||||
},
|
||||
{
|
||||
path: 'schedule-runs',
|
||||
name: 'workspace-schedule-runs',
|
||||
component: () => import('@/features/workspace/pages/ScheduleRunsPage.vue'),
|
||||
meta: { title: '排程记录' },
|
||||
meta: { title: 'workspace.nav.scheduleRuns' },
|
||||
},
|
||||
{
|
||||
path: 'shipping-notice',
|
||||
name: 'workspace-shipping-notice',
|
||||
component: () => import('@/features/workspace/pages/ShippingNoticePage.vue'),
|
||||
meta: { title: '货代发货' },
|
||||
meta: { title: 'workspace.nav.shippingNotice' },
|
||||
},
|
||||
{
|
||||
path: 'feedback',
|
||||
name: 'workspace-feedback',
|
||||
component: () => import('@/features/workspace/pages/FeedbackPage.vue'),
|
||||
meta: { title: '意见反馈' },
|
||||
meta: { title: 'workspace.nav.feedback' },
|
||||
},
|
||||
{
|
||||
path: 'history',
|
||||
name: 'workspace-history',
|
||||
component: () => import('@/features/chat/history/HistoryPage.vue'),
|
||||
meta: { title: '聊天历史' },
|
||||
meta: { title: 'workspace.routes.history' },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user