新增: 初始化 DevFlow 项目仓库
Tauri 2 + Vue 3 + Vite 6 桌面应用,Rust workspace 含 13 个 crate (df-ai / df-storage / df-workflow / df-core / df-execute 等)。 核心能力:AI 聊天 agentic 循环(工具调用+人工审批)、工作流引擎、 任务/想法/项目/阶段管理、可追溯性,及配套前端组件。
This commit is contained in:
78
src/i18n/en.ts
Normal file
78
src/i18n/en.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
export default {
|
||||
nav: {
|
||||
overview: 'Overview',
|
||||
ideas: 'Ideas',
|
||||
projects: 'Projects',
|
||||
tasks: 'Tasks',
|
||||
knowledge: 'Knowledge',
|
||||
decisions: 'Decisions',
|
||||
settings: 'Settings',
|
||||
workspace: 'Workspace',
|
||||
traceability: 'Traceability',
|
||||
systemReady: 'System Ready',
|
||||
aiPanel: 'AI Panel',
|
||||
},
|
||||
dashboard: {
|
||||
title: 'Overview',
|
||||
subtitle: 'All systems operational',
|
||||
refresh: 'Refresh',
|
||||
captureIdea: 'Capture Idea',
|
||||
stats: {
|
||||
ideas: 'Ideas',
|
||||
projects: 'Projects',
|
||||
activeTasks: 'Active Tasks',
|
||||
drafts: 'Drafts',
|
||||
annotations: 'Annotations',
|
||||
},
|
||||
activeProjects: 'Active Projects',
|
||||
viewAll: 'View all',
|
||||
ideaPool: 'Idea Pool',
|
||||
recentDecisions: 'Recent Decisions',
|
||||
openAnnotations: 'Open Annotations',
|
||||
aiBatchProcess: 'AI Batch Process',
|
||||
tasks: '{count} tasks',
|
||||
taskUnit: '{n} tasks',
|
||||
trending: 'Trending',
|
||||
approved: 'Approved',
|
||||
pending: 'Pending',
|
||||
reviewing: 'Reviewing',
|
||||
coding: 'Coding',
|
||||
testing: 'Testing',
|
||||
release: 'Release',
|
||||
empty: {
|
||||
noProjects: 'No projects yet',
|
||||
noIdeas: 'No ideas yet, click above to capture',
|
||||
noData: 'No data',
|
||||
},
|
||||
stage: {
|
||||
planning: 'Planning',
|
||||
coding: 'Coding',
|
||||
paused: 'Paused',
|
||||
done: 'Done',
|
||||
cancelled: 'Cancelled',
|
||||
},
|
||||
ideaStatus: {
|
||||
draft: 'Draft',
|
||||
pending_review: 'Pending',
|
||||
approved: 'Approved',
|
||||
promoted: 'Promoted',
|
||||
rejected: 'Rejected',
|
||||
},
|
||||
},
|
||||
ai: {
|
||||
assistant: 'AI Assistant',
|
||||
toolName: {
|
||||
readFile: 'Read File',
|
||||
listDirectory: 'List Directory',
|
||||
writeFile: 'Write File',
|
||||
},
|
||||
},
|
||||
common: {
|
||||
justNow: 'just now',
|
||||
minutesAgo: '{n}m ago',
|
||||
hoursAgo: '{n}h ago',
|
||||
dayAgo: '{n}d ago',
|
||||
yesterday: 'Yesterday',
|
||||
ago: '{time} ago',
|
||||
},
|
||||
}
|
||||
17
src/i18n/index.ts
Normal file
17
src/i18n/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { createI18n } from 'vue-i18n'
|
||||
import zhCN from './zh-CN'
|
||||
import en from './en'
|
||||
|
||||
// 界面语言:跟随 localStorage 中用户选择,默认简体中文
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
globalInjection: true, // 模板中可直接用 $t / $tc
|
||||
locale: localStorage.getItem('df-language') || 'zh-CN',
|
||||
fallbackLocale: 'en',
|
||||
messages: {
|
||||
'zh-CN': zhCN,
|
||||
en,
|
||||
},
|
||||
})
|
||||
|
||||
export default i18n
|
||||
78
src/i18n/zh-CN.ts
Normal file
78
src/i18n/zh-CN.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
export default {
|
||||
nav: {
|
||||
overview: '总览',
|
||||
ideas: '灵感',
|
||||
projects: '项目',
|
||||
tasks: '任务',
|
||||
knowledge: '知识库',
|
||||
decisions: '决策',
|
||||
settings: '设置',
|
||||
workspace: '工作区',
|
||||
traceability: '追溯',
|
||||
systemReady: '系统就绪',
|
||||
aiPanel: 'AI 面板',
|
||||
},
|
||||
dashboard: {
|
||||
title: '总览',
|
||||
subtitle: '所有系统运行正常',
|
||||
refresh: '刷新',
|
||||
captureIdea: '捕捉灵感',
|
||||
stats: {
|
||||
ideas: '灵感',
|
||||
projects: '项目',
|
||||
activeTasks: '活跃任务',
|
||||
drafts: '草稿',
|
||||
annotations: '待处理标注',
|
||||
},
|
||||
activeProjects: '活跃项目',
|
||||
viewAll: '查看全部',
|
||||
ideaPool: '灵感',
|
||||
recentDecisions: '最近决策',
|
||||
openAnnotations: '待处理标注',
|
||||
aiBatchProcess: 'AI 批量处理',
|
||||
tasks: '{count} 个任务',
|
||||
taskUnit: '{n} 个任务',
|
||||
trending: '热门',
|
||||
approved: '已立项',
|
||||
pending: '待定',
|
||||
reviewing: '评估中',
|
||||
coding: '编码中',
|
||||
testing: '测试中',
|
||||
release: '发布中',
|
||||
empty: {
|
||||
noProjects: '暂无项目,去创建一个',
|
||||
noIdeas: '暂无灵感,点击上方按钮捕捉',
|
||||
noData: '暂无数据',
|
||||
},
|
||||
stage: {
|
||||
planning: '规划中',
|
||||
coding: '编码中',
|
||||
paused: '已暂停',
|
||||
done: '已完成',
|
||||
cancelled: '已取消',
|
||||
},
|
||||
ideaStatus: {
|
||||
draft: '草稿',
|
||||
pending_review: '待评估',
|
||||
approved: '已立项',
|
||||
promoted: '已转立项',
|
||||
rejected: '已驳回',
|
||||
},
|
||||
},
|
||||
ai: {
|
||||
assistant: 'AI 助手',
|
||||
toolName: {
|
||||
readFile: '读取文件',
|
||||
listDirectory: '查看目录',
|
||||
writeFile: '写入文件',
|
||||
},
|
||||
},
|
||||
common: {
|
||||
justNow: '刚刚',
|
||||
minutesAgo: '{n} 分钟前',
|
||||
hoursAgo: '{n} 小时前',
|
||||
dayAgo: '{n} 天前',
|
||||
yesterday: '昨天',
|
||||
ago: '{time}前',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user