Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

feat(web): add Simplified Chinese (zh-CN) UI translations (#130)

夜浮卿d3e54d143b8c
diff --git a/apps/api/src/user-preferences/routes.ts b/apps/api/src/user-preferences/routes.ts
index ffc5042e..0bc308c5 100644
--- a/apps/api/src/user-preferences/routes.ts
+++ b/apps/api/src/user-preferences/routes.ts
@@ -7,7 +7,7 @@ import { ErrorResponse } from '../shared/responses';
import { HotkeyCombosSchema } from '../settings/hotkeys';
import { getPreferences, isValidTimezone, updatePreferences } from './store';
-const Locale = t.Union([t.Literal('en'), t.Literal('uk')]);
+const Locale = t.Union([t.Literal('en'), t.Literal('uk'), t.Literal('zh-CN')]);
const Theme = t.Union([t.Literal('light'), t.Literal('dark'), t.Literal('system')]);
const IssueOpenMode = t.Union([t.Literal('panel'), t.Literal('page')]);
const StartPage = t.Union([
diff --git a/apps/api/src/user-preferences/store.ts b/apps/api/src/user-preferences/store.ts
index 32ec3759..0ae8f85d 100644
--- a/apps/api/src/user-preferences/store.ts
+++ b/apps/api/src/user-preferences/store.ts
@@ -6,7 +6,7 @@ import { eq, sql } from 'drizzle-orm';
// defaults below apply, so a read never fails. Timestamps stay UTC everywhere in the
// API — `timezone` only tells the web app which zone to render them in.
-export const LOCALES = ['en', 'uk'] as const;
+export const LOCALES = ['en', 'uk', 'zh-CN'] as const;
export const THEMES = ['light', 'dark', 'system'] as const;
export const ISSUE_OPEN_MODES = ['panel', 'page'] as const;
export const START_PAGES = ['inbox', 'dashboard', 'work-items', 'initiatives', 'ai-chat'] as const;
diff --git a/apps/web/messages/zh-CN/account.json b/apps/web/messages/zh-CN/account.json
new file mode 100644
index 00000000..c4cf8920
--- /dev/null
+++ b/apps/web/messages/zh-CN/account.json
@@ -0,0 +1,150 @@
+{
+ "profile": {
+ "label": "个人资料",
+ "title": "个人资料",
+ "avatarTitle": "头像",
+ "avatarDescription": "显示在评论、负责人和成员列表中的姓名旁边。",
+ "nameTitle": "姓名",
+ "displayName": "显示名称",
+ "uploading": "正在上传…",
+ "change": "更换",
+ "upload": "上传",
+ "avatarUpdated": "头像已更新",
+ "avatarRemoved": "头像已移除",
+ "avatarUploadFailed": "无法上传头像。",
+ "avatarRemoveFailed": "无法移除头像。",
+ "nameUpdated": "姓名已更新",
+ "nameUpdateFailed": "无法更新姓名。",
+ "description": "你的姓名和头像会显示在整个应用中。当前登录邮箱:{email}。",
+ "avatarTooLarge": "图片超过 {mb} MB 限制",
+ "avatarFormats": "支持 PNG、JPEG、GIF、WebP 或 AVIF。",
+ "avatarMaxSize": "最大 {mb} MB。"
+ },
+ "security": {
+ "label": "安全",
+ "title": "安全",
+ "passwordTitle": "密码",
+ "passwordDescription": "更改密码后,其他会话将退出登录。",
+ "passkeysTitle": "通行密钥",
+ "passkeysDescription": "使用 Touch ID、Windows Hello 或安全密钥免密码登录。",
+ "currentPassword": "当前密码",
+ "newPassword": "新密码",
+ "confirmNewPassword": "确认新密码",
+ "changePassword": "更改密码",
+ "changing": "正在更改…",
+ "passwordChanged": "密码已更改",
+ "passwordChangeFailed": "无法更改密码。",
+ "passwordsDoNotMatch": "两次输入的新密码不一致",
+ "addPasskey": "添加通行密钥",
+ "waitingForPasskey": "等待通行密钥…",
+ "notSignedIn": "未登录",
+ "addPasskeyFailed": "无法添加通行密钥。",
+ "removePasskey": "移除通行密钥",
+ "removePasskeyTitle": "移除通行密钥?",
+ "removePasskeyFailed": "无法移除通行密钥。",
+ "description": "管理 {email} 的登录方式。",
+ "empty": "暂无通行密钥。添加一个即可免密码登录。",
+ "thisDevice": "此设备",
+ "deleteWarning": "移除后将无法再使用此通行密钥登录。此操作无法撤销。",
+ "passkeyFallback": "通行密钥",
+ "passkeysLoadFailed": "无法加载通行密钥。"
+ },
+ "accounts": {
+ "label": "关联账户",
+ "title": "关联账户",
+ "description": "关联外部账户,用于登录或接收通知。",
+ "googleDescription": "使用 Google 账户登录。",
+ "connected": "已连接",
+ "setPasswordFirst": "请先设置密码",
+ "googleConnectFailed": "无法连接 Google。",
+ "googleDisconnected": "已断开 Google",
+ "telegramConnected": "已连接 Telegram",
+ "telegramDisconnected": "已断开 Telegram",
+ "telegramWaiting": "等待你在机器人对话中按下 Start…",
+ "telegramDescription": "通过 Telegram 接收通知。",
+ "connect": "连接",
+ "disconnect": "断开连接",
+ "telegramConnectedLabel": "已连接",
+ "loadFailed": "无法加载关联账户。",
+ "connectFailed": "无法连接 Google。",
+ "disconnectFailed": "无法断开此账户。"
+ },
+ "preferences": {
+ "label": "偏好设置",
+ "title": "偏好设置",
+ "description": "设置应用的外观和行为。更改会立即保存,并同步到你登录的所有设备。",
+ "saved": "偏好设置已保存",
+ "sections": {
+ "appearance": "外观",
+ "dateAndTime": "日期和时间",
+ "dateAndTimeDescription": "时间戳以 UTC 存储,并按此处选择的时区显示。",
+ "navigation": "导航",
+ "navigationDescription": "设置进入应用后的页面以及工作项的打开方式。",
+ "issueSettings": "工作项设置",
+ "issueSettingsDescription": "设置工作项统计和活动记录的默认显示方式。在已打开的工作项中切换显示不会更改这些偏好。",
+ "notifications": "通知",
+ "notificationsDescription": "关注工作项后可接收其评论和状态变更通知。",
+ "aiChat": "AI 聊天",
+ "shortcuts": "键盘快捷键",
+ "shortcutsDescription": "点击“更改”后按下所需按键。“重置”会恢复实例设置的快捷键。"
+ },
+ "theme": "主题",
+ "themeDescription": "“跟随系统”会使用操作系统的主题设置。",
+ "themeOptions": {
+ "system": "跟随系统",
+ "light": "浅色",
+ "dark": "深色"
+ },
+ "language": "语言",
+ "languageDescription": "应用界面、邮件和 Telegram 机器人的语言。",
+ "timezone": "时区",
+ "timezoneDescription": "选择你所在的时区。",
+ "timezonePlaceholder": "选择时区",
+ "timezoneEmpty": "未找到时区。",
+ "timezoneGroups": {
+ "America": "美洲",
+ "Europe": "欧洲",
+ "Africa": "非洲",
+ "Asia": "亚洲",
+ "Australia": "澳大利亚",
+ "Pacific": "太平洋",
+ "Atlantic": "大西洋",
+ "Indian": "印度洋",
+ "Antarctica": "南极洲",
+ "Other": "其他"
+ },
+ "issueOpenMode": "工作项打开方式",
+ "issueOpenModeDescription": "点击看板、表格、日历或时间线中的工作项时采用的打开方式。",
+ "issueOpenModeOptions": {
+ "panel": "侧边面板",
+ "page": "完整页面"
+ },
+ "startPage": "起始页面",
+ "startPageDescription": "进入应用时,在上次使用的项目中打开的功能区。",
+ "startPageOptions": {
+ "work-items": "工作项",
+ "inbox": "收件箱",
+ "dashboard": "仪表盘",
+ "initiatives": "计划",
+ "ai-chat": "AI 聊天"
+ },
+ "showStats": "显示统计",
+ "showStatsDescription": "打开工作项时是否默认展开统计区域。",
+ "statsView": "统计显示方式",
+ "statsViewDescription": "紧凑条形图在一个条形中显示各状态占比;时间线为每个状态显示独立时间段。",
+ "statsViewOptions": {
+ "compact": "紧凑条形图",
+ "timeline": "时间线"
+ },
+ "activityView": "活动记录显示方式",
+ "activityViewDescription": "平铺模式按时间倒序显示所有记录;分组模式按工作项当时所在状态分组。",
+ "activityViewOptions": {
+ "flat": "平铺",
+ "grouped": "按状态分组"
+ },
+ "autoWatch": "自动关注工作项",
+ "autoWatchDescription": "自动关注你创建、获指派、评论或被提及的工作项。",
+ "showChatByDefault": "默认显示聊天入口",
+ "showChatByDefaultDescription": "在项目中始终显示聊天按钮,点击后才打开聊天窗口。"
+ }
+}
diff --git a/apps/web/messages/zh-CN/aiChat.json b/apps/web/messages/zh-CN/aiChat.json
new file mode 100644
index 00000000..f8f696bb
--- /dev/null
+++ b/apps/web/messages/zh-CN/aiChat.json
@@ -0,0 +1,25 @@
+{
+ "noAccess": "你无权访问此项目的 AI 代理。",
+ "emptyTitle": "暂无可对话的代理",
+ "emptyDescription": "这里只能以测试模式与内置代理对话。",
+ "createAgent": "新建代理",
+ "agents": "代理",
+ "agentsAvailable": "{count, plural, other {# 个代理可用}}",
+ "chats": "对话",
+ "newChat": "新建对话",
+ "memoryOff": "记忆已关闭",
+ "noAgents": "暂无代理",
+ "addInternalAgent": "添加内置代理",
+ "noInternalAgents": "暂无可对话的内置代理。",
+ "history": "历史记录",
+ "backToChat": "返回对话",
+ "minimize": "最小化",
+ "minimizeChat": "最小化聊天窗口",
+ "openChat": "打开聊天",
+ "hideChat": "隐藏聊天",
+ "untitledThread": "新对话",
+ "deleteThread": "删除对话",
+ "deleteThreadConfirm": "将永久删除“{title}”及其中的消息。",
+ "noThreads": "暂无对话。发送消息以开始对话。",
+ "noModel": "未设置模型"
+}
diff --git a/apps/web/messages/zh-CN/apiKeys.json b/apps/web/messages/zh-CN/apiKeys.json
new file mode 100644
index 00000000..27878dd9
--- /dev/null
+++ b/apps/web/messages/zh-CN/apiKeys.json
@@ -0,0 +1,32 @@
+{
+ "label": "API 密钥",
+ "title": "API 密钥",
+ "description": "个人 API 密钥以你的账户({email})身份验证 API 请求。密钥值只在创建时显示一次。",
+ "sectionTitle": "你的 API 密钥",
+ "create": "创建 API 密钥",
+ "empty": "暂无 API 密钥。创建密钥以验证 API 请求。",
+ "fallbackName": "API 密钥",
+ "createdAt": "创建于 {date}",
+ "deleteAction": "删除 API 密钥",
+ "createDialog": {
+ "title": "创建 API 密钥",
+ "nameLabel": "名称",
+ "namePlaceholder": "例如:CI 流水线",
+ "nameHint": "用于以后识别此密钥的名称。",
+ "submit": "创建密钥",
+ "submitPending": "正在创建…",
+ "error": "无法创建 API 密钥。"
+ },
+ "createdDialog": {
+ "title": "API 密钥已创建",
+ "description": "请立即复制密钥。为确保安全,密钥只显示一次,之后无法再次获取。",
+ "copy": "复制密钥"
+ },
+ "deleteDialog": {
+ "title": "删除 API 密钥?",
+ "confirm": "删除密钥",
+ "description": "使用此密钥的所有请求会立即失效。此操作无法撤销。",
+ "error": "无法删除 API 密钥。"
+ },
+ "loadFailed": "无法加载 API 密钥。"
+}
diff --git a/apps/web/messages/zh-CN/auth.json b/apps/web/messages/zh-CN/auth.json
new file mode 100644
index 00000000..9612378b
--- /dev/null
+++ b/apps/web/messages/zh-CN/auth.json
@@ -0,0 +1,87 @@
+{
+ "legal": {
+ "both": "继续即表示你同意我们的<terms>服务条款</terms>和<privacy>隐私政策</privacy>。",
+ "termsOnly": "继续即表示你同意我们的<terms>服务条款</terms>。",
+ "privacyOnly": "继续即表示你同意我们的<privacy>隐私政策</privacy>。"
+ },
+ "fields": {
+ "email": "邮箱",
+ "emailPlaceholder": "[email protected]",
+ "password": "密码",
+ "newPassword": "新密码",
+ "confirmPassword": "确认密码",
+ "passwordHint": "至少需要 8 个字符。"
+ },
+ "login": {
+ "title": "欢迎回来",
+ "subtitleVerified": "邮箱已验证,请登录以继续。",
+ "subtitleReset": "密码已更改,请使用新密码登录。",
+ "subtitleLink": "我们会通过邮件向你发送登录链接",
+ "subtitlePassword": "使用邮箱和密码登录",
+ "submit": "登录",
+ "submitPending": "正在登录…",
+ "sendLink": "发送登录链接",
+ "sendLinkPending": "正在发送…",
+ "forgotPassword": "忘记密码?",
+ "or": "或",
+ "noAccount": "还没有账户?",
+ "signUp": "注册",
+ "linkSentTitle": "请检查邮箱",
+ "linkSentDescription": "登录链接已发送至 {email},打开链接即可登录。",
+ "backToSignIn": "返回登录",
+ "withPassword": "使用密码登录",
+ "withLink": "向我发送登录链接",
+ "withGoogle": "使用 Google 继续",
+ "withPasskey": "使用通行密钥登录",
+ "unconfirmedResent": "验证邮件已发送,请检查收件箱和垃圾邮件。",
+ "unconfirmedPrompt": "请检查垃圾邮件,或<resend>重新发送验证邮件</resend>。"
+ },
+ "register": {
+ "title": "创建账户",
+ "subtitle": "使用邮箱和密码注册",
+ "subtitleInviteOnly": "此实例仅限受邀用户注册,请使用收到邀请的邮箱。",
+ "submit": "创建账户",
+ "submitPending": "正在创建账户…",
+ "or": "或",
+ "withGoogle": "使用 Google 继续",
+ "haveAccount": "已有账户?",
+ "signIn": "登录",
+ "confirmTitle": "验证邮箱",
+ "confirmDescription": "验证链接已发送至 {email},打开链接以完成账户创建。",
+ "backToSignIn": "返回登录",
+ "closedTitle": "注册已关闭",
+ "closedDescription": "此实例不接受新账户注册。"
+ },
+ "forgotPassword": {
+ "title": "重置密码",
+ "subtitle": "我们会通过邮件向你发送设置新密码的链接",
+ "submit": "发送重置链接",
+ "submitPending": "正在发送…",
+ "sentTitle": "请检查邮箱",
+ "sentDescription": "如果 {email} 对应的账户存在,重置链接正在发送。",
+ "backToSignIn": "返回登录",
+ "remembered": "想起密码了?",
+ "signIn": "登录"
+ },
+ "resetPassword": {
+ "title": "设置新密码",
+ "subtitle": "请选择一个之前未在此使用过的密码",
+ "submit": "设置新密码",
+ "submitPending": "正在保存…",
+ "deadLinkTitle": "此链接已失效",
+ "deadLinkDescription": "重置链接会过期且只能使用一次,请申请新链接。",
+ "sendNewLink": "发送新链接"
+ },
+ "errors": {
+ "generic": "出现错误,请重试。",
+ "passkey": "无法使用通行密钥登录,请重试。",
+ "passwordsDoNotMatch": "两次输入的密码不一致。",
+ "google": "无法使用 Google 登录,请重试。",
+ "linkRefused": "此邮箱已有账户。请先使用密码登录并验证邮箱,然后再使用 Google。",
+ "signupDisabled": "此实例不接受新账户注册。",
+ "emailNotFound": "Google 未返回此账户的邮箱地址。",
+ "tokenExpired": "此验证链接已过期。请在下方登录以获取新链接。",
+ "invalidToken": "此验证链接无效。请在下方登录以获取新链接。",
+ "userNotFound": "此验证链接对应的账户已不存在。"
+ }
+}
diff --git a/apps/web/messages/zh-CN/common.json b/apps/web/messages/zh-CN/common.json
new file mode 100644
index 00000000..e204ecd5
--- /dev/null
+++ b/apps/web/messages/zh-CN/common.json
@@ -0,0 +1,129 @@
+{
+ "cancel": "取消",
+ "done": "完成",
+ "loading": "正在加载…",
+ "signOut": "退出登录",
+ "member": "成员",
+ "owner": "所有者",
+ "delete": "删除",
+ "more": "更多",
+ "back": "返回",
+ "save": "保存",
+ "saving": "正在保存…",
+ "close": "关闭",
+ "name": "名称",
+ "edit": "编辑",
+ "language": "语言",
+ "toggleTheme": "切换主题",
+ "priority": {
+ "label": "优先级",
+ "tooltip": "{priority}优先级",
+ "setTo": "将优先级设为…",
+ "none": "无优先级",
+ "urgent": "紧急",
+ "high": "高",
+ "medium": "中",
+ "low": "低"
+ },
+ "add": "添加",
+ "showMore": "显示更多",
+ "archived": "已归档",
+ "clear": "清除",
+ "noLabels": "暂无标签。",
+ "enabled": "已启用",
+ "fullscreen": "全屏",
+ "exitFullscreen": "退出全屏",
+ "resizeTitleColumn": "调整标题列宽",
+ "openGeneralSettings": "打开常规设置",
+ "noSectionAccess": "你无权访问此部分。",
+ "brandSubtitle": "在看板中规划工作项。登录后打开你的项目。",
+ "hotkeys": {
+ "pressKeys": "请按键",
+ "fixed": "固定",
+ "resetShortcut": "重置此快捷键",
+ "groups": {
+ "general": "常规",
+ "workItems": "工作项"
+ },
+ "commands": {
+ "palette": {
+ "toggle": "打开命令面板"
+ },
+ "project": {
+ "switch": "切换到项目 1–9",
+ "new": "新建项目",
+ "settings": "打开项目设置"
+ },
+ "sidebar": {
+ "toggle": "显示或隐藏侧边栏"
+ },
+ "issue": {
+ "new": "新建工作项"
+ },
+ "view": {
+ "kanban": "看板布局",
+ "table": "表格布局",
+ "timeline": "时间线布局",
+ "calendar": "日历布局"
+ },
+ "board": {
+ "select-all": "选择看板中的所有工作项"
+ }
+ },
+ "conflict": "已被“{command}”使用"
+ },
+ "agentChat": {
+ "emptyHint": "发送消息,测试此代理如何回复以及会使用哪些工具。",
+ "messagePlaceholder": "给 {agent} 发送消息…",
+ "reset": "重置对话",
+ "send": "发送",
+ "loadingEarlier": "正在加载更早的消息…",
+ "messages": "对话消息",
+ "usingTool": "正在使用 {tool}…",
+ "thinking": "正在思考…",
+ "title": "与 {agent} 对话",
+ "unreachable": "无法连接代理,请重试。"
+ },
+ "share": {
+ "createFailed": "无法创建链接,请重试。",
+ "changeFailed": "无法更改链接内容,请重试。",
+ "stopFailed": "无法停止共享,请重试。",
+ "copyFailed": "无法复制链接,请手动选择并复制。",
+ "hint": "任何获得链接的人都可以查看,无需账户。",
+ "shareLink": "共享链接",
+ "fullDetails": "完整工作项详情",
+ "fullDetailsHint": "负责人、标签、自定义字段和活动记录。",
+ "stopSharing": "停止共享",
+ "createLink": "创建链接",
+ "copy": "复制",
+ "copied": "已复制"
+ },
+ "actions": "操作",
+ "clearSearch": "清除搜索",
+ "hide": "隐藏",
+ "show": "显示",
+ "copy": "复制",
+ "copied": "已复制",
+ "change": "更改",
+ "featureOffHint": "项目所有者可在常规设置中重新启用此部分。",
+ "description": "描述",
+ "pickColor": "选择颜色",
+ "new": "新建",
+ "features": {
+ "initiatives": "计划",
+ "cycles": "周期",
+ "dashboards": "仪表盘",
+ "notes": "便签",
+ "subtasks": "子任务",
+ "checklists": "检查清单",
+ "issueStats": "工作项统计"
+ },
+ "featureOffTitle": "{feature}已停用",
+ "toggleSidebar": "切换侧边栏",
+ "system": "系统",
+ "genericError": "出现错误",
+ "commandPalette": "命令面板",
+ "commandPaletteHint": "搜索要运行的命令…",
+ "scrollToEnd": "滚动到底部",
+ "scrollToStart": "滚动到顶部"
+}
diff --git a/apps/web/messages/zh-CN/cycles.json b/apps/web/messages/zh-CN/cycles.json
new file mode 100644
index 00000000..13efb023
--- /dev/null
+++ b/apps/web/messages/zh-CN/cycles.json
@@ -0,0 +1,58 @@
+{
+ "title": "周期",
+ "newCycle": "新建周期",
+ "status": {
+ "upcoming": "即将开始",
+ "active": "进行中",
+ "completed": "已结束"
+ },
+ "views": {
+ "table": "表格",
+ "timeline": "时间线"
+ },
+ "columns": {
+ "name": "名称",
+ "dates": "日期",
+ "length": "时长",
+ "issues": "工作项",
+ "progress": "进度"
+ },
+ "emptyTitle": "暂无周期",
+ "emptyDescription": "周期是团队安排工作项的固定时间段。",
+ "nothingPlannedTitle": "暂无周期计划",
+ "nothingPlannedDescription": "时间线显示当前和即将开始的周期,已结束的周期显示在表格中。",
+ "options": "周期选项",
+ "transferIssues": "转移未完成的工作项",
+ "form": {
+ "editTitle": "编辑周期",
+ "newTitle": "新建周期",
+ "name": "名称",
+ "goal": "目标",
+ "goalPlaceholder": "此周期应交付什么?",
+ "length": "时长",
+ "starts": "开始日期",
+ "ends": "结束日期",
+ "create": "新建周期",
+ "saveFailed": "无法保存周期"
+ },
+ "weeks": "{count, plural, other {# 周}}",
+ "transfer": {
+ "title": "转移未完成的工作项",
+ "description": "未处于已完成或已取消状态的工作项会移至所选周期,其余工作项保留在此周期。",
+ "moveTo": "移至",
+ "noCycle": "不属于任何周期",
+ "submit": "移动工作项",
+ "moving": "正在移动…",
+ "moved": "{count, plural, other {已移动 # 个工作项}}",
+ "failed": "无法移动工作项"
+ },
+ "details": "周期详情",
+ "goal": "目标",
+ "noGoal": "未设置目标。",
+ "progress": "进度",
+ "openCycle": "打开周期",
+ "dragFailed": "无法移动周期",
+ "notFound": "未找到周期。",
+ "defaultName": "迭代 {n}",
+ "issuesDone": "已完成工作项"
+}
diff --git a/apps/web/messages/zh-CN/dashboards.json b/apps/web/messages/zh-CN/dashboards.json
new file mode 100644
index 00000000..0a42c698
--- /dev/null
+++ b/apps/web/messages/zh-CN/dashboards.json
@@ -0,0 +1,202 @@
+{
+ "noAccess": "你无权访问仪表盘。",
+ "defaultName": "概览",
+ "newDashboard": "新建仪表盘",
+ "renameDashboard": "重命名仪表盘",
+ "namePlaceholder": "仪表盘名称",
+ "options": "仪表盘选项",
+ "rename": "重命名",
+ "editLayout": "编辑布局",
+ "discard": "放弃更改",
+ "saveDashboard": "保存仪表盘",
+ "saveChanges": "保存更改",
+ "noWidgets": "暂无组件。添加组件来配置此仪表盘。",
+ "addWidget": "添加组件",
+ "addWidgetTitle": "添加组件",
+ "addWidgetDescription": "选择要添加到此仪表盘的组件。",
+ "searchWidgets": "搜索组件",
+ "clearSearch": "清除搜索",
+ "noWidgetMatches": "没有与“{query}”匹配的组件。",
+ "dragToMove": "拖动以移动",
+ "widgetName": "组件名称",
+ "widgetSettings": "组件设置",
+ "widgetOptions": "组件选项",
+ "removeWidget": "移除组件",
+ "lastDays": "最近 {days} 天",
+ "showRows": "显示 {count} 条",
+ "widgetGroups": {
+ "issues": "工作项",
+ "agents": "AI 代理和 Webhook"
+ },
+ "widgets": {
+ "stat": {
+ "label": "数量",
+ "description": "符合筛选条件的工作项数量"
+ },
+ "recent_issues": {
+ "label": "最近工作项",
+ "description": "按创建或更新时间显示最新工作项"
+ },
+ "activity_feed": {
+ "label": "活动动态",
+ "description": "项目范围的变更记录,可按执行者和操作筛选"
+ },
+ "pulse": {
+ "label": "活跃度",
+ "description": "按天显示活动的 GitHub 风格热力图"
+ },
+ "throughput": {
+ "label": "吞吐量",
+ "description": "每周创建和关闭的工作项数量"
+ },
+ "breakdown": {
+ "label": "分类统计",
+ "description": "按状态、优先级、类型或负责人统计工作项"
+ },
+ "agent_runs": {
+ "label": "代理运行",
+ "description": "最近的 AI 代理运行及其结果"
+ },
+ "agent_health": {
+ "label": "代理运行状况",
+ "description": "指定时间范围内代理运行的成功率和失败情况"
+ },
+ "webhook_health": {
+ "label": "Webhook 投递状况",
+ "description": "Webhook 投递结果和已禁用端点"
+ },
+ "agent_workload": {
+ "label": "代理工作量",
+ "description": "各代理接收的工作项及运行结果"
+ }
+ },
+ "breakdown": {
+ "empty": "暂无工作项。",
+ "by": {
+ "status": "状态",
+ "priority": "优先级",
+ "type": "类型",
+ "assignee": "负责人",
+ "delegate": "执行代理"
+ },
+ "caption": {
+ "status": "按状态",
+ "priority": "按优先级",
+ "type": "按类型",
+ "assignee": "按负责人",
+ "delegate": "按执行代理"
+ }
+ },
+ "recentIssues": {
+ "empty": "没有符合此筛选条件的工作项。",
+ "captionCreated": "最新创建优先",
+ "captionUpdated": "最近更新",
+ "filterCount": "{count, plural, other {# 个筛选条件}}",
+ "sort": {
+ "created": "最新创建",
+ "updated": "最近更新"
+ }
+ },
+ "activityFeed": {
+ "empty": "没有符合此筛选条件的活动记录。",
+ "someone": "某位用户",
+ "filterCount": "{count, plural, other {# 个筛选条件}}",
+ "actions": {
+ "all": "全部活动",
+ "status": "状态变更",
+ "assignee": "负责人变更",
+ "priority": "优先级",
+ "created": "创建"
+ },
+ "verbs": {
+ "comment": "评论了",
+ "created": "创建了",
+ "title": "重命名了",
+ "description": "更新了以下工作项的描述:",
+ "status": "更改了以下工作项的状态:",
+ "assignee": "更改了以下工作项的负责人:",
+ "priority": "更改了以下工作项的优先级:",
+ "type": "更改了以下工作项的类型:",
+ "start_date": "更改了以下工作项的开始日期:",
+ "due_date": "更改了以下工作项的截止日期:",
+ "label_add": "为以下工作项添加了标签:",
+ "label_remove": "移除了以下工作项的标签:",
+ "field": "更新了以下工作项的字段:",
+ "other": "更新了"
+ }
+ },
+ "pulse": {
+ "caption": {
+ "hour": "按小时",
+ "day": "按天",
+ "week": "按周"
+ },
+ "unit": {
+ "hour": "小时",
+ "day": "天",
+ "week": "周"
+ },
+ "events": "{count, plural, other {# 个事件}}",
+ "eventNoun": "{count, plural, one {个事件} other {个事件}}",
+ "active": "{count} 个活跃项",
+ "less": "较少",
+ "more": "较多"
+ },
+ "throughput": {
+ "empty": "此时间段内暂无活动。",
+ "lastWeeks": "最近 {weeks} 周",
+ "created": "已创建",
+ "closed": "已关闭"
+ },
+ "agentRuns": {
+ "empty": "暂无代理运行记录。",
+ "filters": {
+ "all": "全部运行",
+ "failed": "失败",
+ "pending": "已排队",
+ "success": "成功"
+ },
+ "status": {
+ "pending": "已排队",
+ "success": "成功",
+ "failed": "失败"
+ },
+ "trigger": {
+ "mention": "因以下位置的提及而运行:",
+ "delegation": "因以下工作项的委派而运行:",
+ "manual": "手动运行",
+ "schedule": "按定时任务运行"
+ }
+ },
+ "agentHealth": {
+ "empty": "暂无代理运行记录。",
+ "successRate": "成功率",
+ "runs": "{count, plural, other {# 次运行}}",
+ "failed": "{count} 次失败",
+ "queued": "{count} 次已排队"
+ },
+ "webhookHealth": {
+ "deliveries": "次投递",
+ "failed": "{count} 次失败",
+ "pending": "{count} 次待处理",
+ "allDelivered": "全部投递成功",
+ "disabled": "{count, plural, other {# 个已禁用端点}}"
+ },
+ "agentWorkload": {
+ "empty": "此项目暂无代理。",
+ "agent": "代理",
+ "delegated": "已委派",
+ "runs": "运行次数",
+ "failed": "{count} 次失败",
+ "kind": {
+ "external": "外部",
+ "internal": "内置"
+ }
+ },
+ "defaultWidgets": {
+ "open": "未关闭",
+ "inProgress": "进行中",
+ "backlog": "待办池",
+ "unassigned": "未指派"
+ }
+}
diff --git a/apps/web/messages/zh-CN/display.json b/apps/web/messages/zh-CN/display.json
new file mode 100644
index 00000000..743ee30d
--- /dev/null
+++ b/apps/web/messages/zh-CN/display.json
@@ -0,0 +1,92 @@
+{
+ "title": "显示",
+ "layouts": {
+ "kanban": "看板",
+ "table": "表格",
+ "timeline": "时间线",
+ "calendar": "日历"
+ },
+ "sortFields": {
+ "manual": "手动",
+ "title": "标题",
+ "identifier": "工作项编号",
+ "status": "状态",
+ "priority": "优先级",
+ "assignee": "负责人",
+ "type": "类型",
+ "startDate": "开始日期",
+ "dueDate": "截止日期",
+ "created": "创建时间",
+ "updated": "更新时间"
+ },
+ "groupFields": {
+ "none": "不分组",
+ "status": "状态",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "priority": "优先级",
+ "type": "类型",
+ "initiative": "计划",
+ "cycle": "周期"
+ },
+ "properties": {
+ "id": "ID",
+ "status": "状态",
+ "priority": "优先级",
+ "type": "类型",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "initiative": "计划",
+ "cycle": "周期",
+ "labels": "标签",
+ "startDate": "开始日期",
+ "dueDate": "截止日期",
+ "created": "创建时间",
+ "updated": "更新时间",
+ "statusAge": "处于当前状态的时间"
+ },
+ "stateTypes": {
+ "backlog": "待办池",
+ "unstarted": "未开始",
+ "started": "进行中",
+ "completed": "已完成",
+ "canceled": "已取消"
+ },
+ "timelineScales": {
+ "week": "周",
+ "month": "月",
+ "quarter": "季度"
+ },
+ "weekStart": {
+ "0": "周日",
+ "1": "周一"
+ },
+ "dateFields": {
+ "dueDate": "截止日期",
+ "startDate": "开始日期"
+ },
+ "rows": {
+ "columns": "状态列",
+ "grouping": "分组",
+ "swimlanes": "泳道",
+ "subGrouping": "次级分组",
+ "ordering": "排序方式",
+ "ascending": "升序",
+ "descending": "降序",
+ "showEmptyColumns": "显示空状态列",
+ "showEmptyGroups": "显示空分组",
+ "showLinks": "显示关联",
+ "separateSubtaskCards": "将子任务显示为单独卡片",
+ "separateSubtaskRows": "将子任务显示为单独行",
+ "showNestedSubtasks": "显示嵌套子任务",
+ "nestedSubtasks": "嵌套子任务",
+ "displayProperties": "显示属性",
+ "placeBy": "定位依据",
+ "startWeekOn": "每周起始日",
+ "startCollapsed": "默认折叠分组",
+ "scale": "时间刻度",
+ "addCustomField": "添加自定义字段",
+ "viewIcon": "视图图标"
+ },
+ "layoutCommand": "{layout}布局"
+}
diff --git a/apps/web/messages/zh-CN/filters.json b/apps/web/messages/zh-CN/filters.json
new file mode 100644
index 00000000..407b920a
--- /dev/null
+++ b/apps/web/messages/zh-CN/filters.json
@@ -0,0 +1,39 @@
+{
+ "add": "添加筛选条件",
+ "remove": "移除筛选条件",
+ "valuePlaceholder": "值",
+ "noOptions": "无可用选项",
+ "selected": "已选择 {count} 项",
+ "operators": {
+ "is": "是",
+ "is_not": "不是",
+ "before": "早于",
+ "after": "晚于",
+ "is_set": "已设置",
+ "is_not_set": "未设置",
+ "contains": "包含",
+ "not_contains": "不包含"
+ },
+ "boolean": {
+ "true": "是",
+ "false": "否"
+ },
+ "fields": {
+ "status": "状态",
+ "statusType": "状态类型",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "priority": "优先级",
+ "type": "类型",
+ "labels": "标签",
+ "dueDate": "截止日期",
+ "startDate": "开始日期",
+ "created": "创建时间",
+ "updated": "更新时间"
+ },
+ "unset": {
+ "assignee": "无负责人",
+ "delegate": "无执行代理",
+ "type": "无类型"
+ }
+}
diff --git a/apps/web/messages/zh-CN/god.json b/apps/web/messages/zh-CN/god.json
new file mode 100644
index 00000000..8c972dd3
--- /dev/null
+++ b/apps/web/messages/zh-CN/god.json
@@ -0,0 +1,211 @@
+{
+ "pager": {
+ "perPage": "每页",
+ "rowsPerPage": "每页行数",
+ "range": "第 {first}-{last} 项,共 {total} 项",
+ "previous": "上一页",
+ "next": "下一页"
+ },
+ "access": {
+ "owner": "所有者拥有完整访问权限,不受角色权限矩阵限制。",
+ "role": "根据“{role}”角色确定。",
+ "default": "未分配角色,使用默认成员权限。",
+ "joined": "加入于 {date}"
+ },
+ "providers": {
+ "credential": "密码",
+ "google": "Google",
+ "passkey": "通行密钥"
+ },
+ "users": {
+ "empty": "没有符合筛选条件的账户。",
+ "searchPlaceholder": "按姓名或邮箱搜索",
+ "kind": "账户类型",
+ "kinds": {
+ "human": "人员",
+ "agent": "AI 代理",
+ "all": "所有账户"
+ },
+ "columns": {
+ "account": "账户",
+ "role": "角色",
+ "signIn": "登录方式",
+ "projects": "项目",
+ "lastSeen": "最近登录",
+ "email": "邮箱"
+ },
+ "registered": "注册于 {date}",
+ "roleGod": "实例管理员",
+ "roleUser": "用户",
+ "agent": "代理",
+ "noProviders": "无",
+ "neverSeen": "从未登录",
+ "verified": "已验证",
+ "notVerified": "未验证",
+ "open": "打开账户",
+ "showAccess": "查看项目权限"
+ },
+ "userPanel": {
+ "instanceOwner": "实例管理员",
+ "user": "用户",
+ "aiAgent": "AI 代理",
+ "emailVerified": "邮箱已验证",
+ "unconfirmedTitle": "邮箱未验证",
+ "unconfirmedHint": "确认验证邮件未送达后可手动标记。",
+ "verify": "标记为已验证",
+ "verifying": "正在验证…",
+ "verifyDone": "邮箱已验证",
+ "signInMethods": "登录方式",
+ "noProviders": "未关联",
+ "projects": "项目",
+ "noProjects": "无",
+ "registered": "注册时间",
+ "lastSeen": "最近登录",
+ "neverSignedIn": "从未登录",
+ "projectAccess": "项目访问权限",
+ "noAccessTitle": "无项目访问权限",
+ "noAccessHint": "在收到项目邀请前,此账户无法访问任何项目。",
+ "deleteHint": "该账户创建的工作项和评论会保留,但作者将取消关联。",
+ "deleteTitle": "删除账户",
+ "deleteConfirm": "删除账户",
+ "deleteConfirmWithProjects": "{count, plural, other {删除账户和项目}}",
+ "deleteMessage": "<strong>{name}</strong> 将无法访问此实例。该用户创建的工作项和评论会保留,但作者将被取消关联。此操作无法撤销。",
+ "soleOwnerTitle": "{count, plural, other {# 个项目的唯一所有者}}",
+ "soleOwnerHint": "{count, plural, other {账户删除后,将无人能够管理这些项目。}}",
+ "deleteWithProjects": "{count, plural, other {同时删除这些项目}}",
+ "deleteWithProjectsOn": "同时删除项目中的所有内容。",
+ "deleteWithProjectsOff": "或者先取消,再添加第二名所有者。",
+ "deleted": "账户已删除",
+ "deletedWithProjects": "账户及其项目已删除"
+ },
+ "projects": {
+ "empty": "没有符合搜索条件的项目。",
+ "searchPlaceholder": "按标识或名称搜索",
+ "columns": {
+ "project": "项目",
+ "members": "成员",
+ "issues": "工作项",
+ "agents": "代理",
+ "lastActivity": "最近活动",
+ "mcp": "MCP"
+ },
+ "created": "创建于 {date}",
+ "archived": "{count} 个已归档",
+ "neverActive": "从未活动",
+ "mcpEnabled": "已启用",
+ "mcpOff": "已关闭",
+ "open": "打开项目",
+ "showDetails": "查看项目详情"
+ },
+ "projectPanel": {
+ "mcpEnabled": "MCP 已启用",
+ "mcpOff": "MCP 已关闭",
+ "created": "创建于 {date}",
+ "lastActivity": "最近活动:{value}",
+ "noActivity": "暂无活动",
+ "statTitle": "{label}:{value}",
+ "stats": {
+ "issues": "工作项",
+ "archivedIssues": "归档工作项",
+ "initiatives": "计划",
+ "members": "成员",
+ "dashboards": "仪表盘",
+ "views": "视图",
+ "agents": "AI 代理",
+ "skills": "技能",
+ "tools": "工具",
+ "integrations": "集成"
+ },
+ "members": "成员",
+ "noMembersTitle": "暂无成员",
+ "noMembersHint": "需要邀请成员后才能访问此项目。"
+ },
+ "authentication": {
+ "saved": "身份验证设置已保存",
+ "registration": "注册",
+ "registrationHint": "设置哪些人可以创建此实例的账户。",
+ "modes": {
+ "open": {
+ "label": "开放注册",
+ "description": "任何访问注册页面的人都可以创建账户。"
+ },
+ "invite": {
+ "label": "仅限邀请",
+ "description": "只有收到项目邀请的邮箱可以创建账户。"
+ },
+ "closed": {
+ "label": "关闭注册",
+ "description": "不允许创建新账户,现有账户仍可登录。"
+ }
+ },
+ "signIn": "登录选项",
+ "signInHint": "这些选项需要发送邮件,配置邮件服务商后才可启用。",
+ "needsProvider": "请先在“邮件服务商”中完成配置。",
+ "requireVerification": "要求验证邮箱",
+ "requireVerificationHint": "新账户必须验证邮箱后才能登录。",
+ "magicLink": "邮箱登录链接",
+ "magicLinkHint": "通过邮件发送免密码登录链接。"
+ },
+ "hotkeys": {
+ "saved": "键盘快捷键已保存"
+ },
+ "storage": {
+ "saved": "存储设置已保存",
+ "fileSize": "文件大小",
+ "fileSizeHint": "设置允许上传的最大文件大小。超过限制的文件不会保存。",
+ "attachmentMb": "附件大小(MB)",
+ "attachmentHint": "适用于工作项附件、粘贴到描述中的文件以及代理添加的附件。",
+ "avatarMb": "头像大小(MB)",
+ "avatarHint": "适用于用户上传的账户头像。",
+ "mimeTypes": "允许的附件类型",
+ "mimeTypesHint": "每行填写一个 MIME 类型,留空表示允许任何文件。",
+ "mimeTypesNote": "每行填写完整类型(application/pdf)或通配符(image/*)。已存储文件不会受列表变更影响。",
+ "quota": "项目配额",
+ "quotaHint": "单个项目可使用的附件存储总量。0 表示不限制。",
+ "quotaMb": "每个项目的存储空间(MB)",
+ "quotaNote": "项目达到配额后会拒绝新上传,直到有人删除附件。"
+ },
+ "telegram": {
+ "saved": "Telegram 设置已保存",
+ "bot": "机器人",
+ "botConfigured": "用户可以在个人资料中打开此机器人的对话,以关联 Telegram 账户。",
+ "botMissing": "在 Telegram 中通过 @BotFather 创建机器人,然后在此粘贴机器人令牌。",
+ "botToken": "机器人令牌",
+ "botTokenHint": "保存时会通过 Telegram 验证令牌,错误令牌会立即被拒绝。",
+ "resolvedHint": "根据令牌解析。用户关联账户时会看到此机器人。"
+ },
+ "email": {
+ "saved": "邮件服务商已保存",
+ "provider": "邮件服务商",
+ "providerHint": "选择一个服务商,凭据会加密存储。",
+ "from": "发件地址",
+ "fromHint": "Resend 必填;SMTP 默认使用用户名。",
+ "host": "主机",
+ "port": "端口",
+ "encryption": "加密方式",
+ "encryptionOptions": {
+ "none": "无",
+ "ssl": "SSL",
+ "tls": "TLS"
+ },
+ "username": "用户名",
+ "password": "密码",
+ "passwordPlaceholder": "SMTP 密码",
+ "timeout": "超时(秒)",
+ "optional": "可选",
+ "apiKey": "API 密钥",
+ "projectNotifications": "项目通知",
+ "projectNotificationsHint": "允许项目使用此服务商发送通知。每个项目可以自行选择是否使用。"
+ },
+ "authProvider": {
+ "saved": "身份验证提供商已保存",
+ "google": "Google",
+ "googleConfigured": "邮箱没有对应账户时会创建账户;已有已验证账户时会直接登录。",
+ "googleMissing": "请先填写客户端 ID 和客户端密钥。",
+ "clientId": "客户端 ID",
+ "clientSecret": "客户端密钥",
+ "redirectUri": "重定向 URI",
+ "redirectUriHint": "请在 Google Cloud 控制台的 OAuth 客户端中添加此地址。地址不完全匹配时,Google 会拒绝登录。",
+ "copyRedirectUri": "复制重定向 URI"
+ }
+}
diff --git a/apps/web/messages/zh-CN/inbox.json b/apps/web/messages/zh-CN/inbox.json
new file mode 100644
index 00000000..d2e2db16
--- /dev/null
+++ b/apps/web/messages/zh-CN/inbox.json
@@ -0,0 +1,37 @@
+{
+ "title": "收件箱",
+ "empty": "暂无通知",
+ "selectNotification": "选择一条通知",
+ "backToList": "收件箱",
+ "filter": "筛选",
+ "display": "显示",
+ "notificationType": "通知类型",
+ "showRead": "显示已读通知",
+ "showSnoozed": "显示已稍后提醒的通知",
+ "markAllRead": "全部标为已读",
+ "deleteAllRead": "删除所有已读通知",
+ "deleteAllReadCompleted": "删除已完成工作项的所有已读通知",
+ "types": {
+ "assigned": "已指派",
+ "mentioned": "已提及",
+ "commented": "有新评论",
+ "state_changed": "状态已变更"
+ },
+ "actions": {
+ "markRead": "标为已读",
+ "markUnread": "标为未读",
+ "snooze": "稍后提醒",
+ "unsnooze": "取消稍后提醒",
+ "tomorrow": "明天",
+ "inAWeek": "一周后",
+ "pickDate": "选择日期…"
+ },
+ "event": {
+ "someone": "某位用户",
+ "assigned": "{who} 将工作项指派给你",
+ "mentioned": "{who} 提及了你",
+ "commented": "{who} 发表了评论",
+ "stateChanged": "{who} 将状态从 {from} 更改为 {to}",
+ "stateChangedPlain": "{who} 更改了状态"
+ }
+}
diff --git a/apps/web/messages/zh-CN/initiatives.json b/apps/web/messages/zh-CN/initiatives.json
new file mode 100644
index 00000000..d5fe184e
--- /dev/null
+++ b/apps/web/messages/zh-CN/initiatives.json
@@ -0,0 +1,144 @@
+{
+ "title": "计划",
+ "newInitiative": "新建计划",
+ "notFound": "未找到计划。",
+ "options": "计划选项",
+ "showDescription": "显示描述",
+ "noDescription": "暂无描述。",
+ "noOwner": "无负责人",
+ "targetDate": "目标日期",
+ "progress": "进度",
+ "activity": "活动记录",
+ "noActivity": "暂无活动记录。",
+ "noIssuesLinked": "暂无关联工作项。",
+ "inProgress": "进行中",
+ "emptyTitle": "暂无计划",
+ "emptyDescription": "计划将相关工作项归入同一目标。",
+ "emptyTabDescription": "计划会随状态变更显示在不同标签页中。",
+ "emptyTab": {
+ "active": "暂无进行中的计划",
+ "planned": "暂无已规划的计划",
+ "proposed": "暂无提议中的计划",
+ "completed": "暂无已完成的计划"
+ },
+ "tabs": {
+ "active": "进行中",
+ "planned": "已规划",
+ "proposed": "提议中",
+ "completed": "已完成",
+ "all": "所有计划"
+ },
+ "detailTabs": {
+ "overview": "概览",
+ "issues": "工作项"
+ },
+ "columns": {
+ "name": "名称",
+ "priority": "优先级",
+ "owner": "负责人",
+ "target": "目标日期",
+ "progress": "进度",
+ "health": "进展状态"
+ },
+ "status": {
+ "proposed": "提议中",
+ "planned": "已规划",
+ "active": "进行中",
+ "completed": "已完成",
+ "canceled": "已取消"
+ },
+ "stateGroups": {
+ "backlog": "待办池",
+ "unstarted": "待办",
+ "started": "进行中",
+ "completed": "已完成",
+ "canceled": "已取消"
+ },
+ "health": {
+ "on_track": "进展正常",
+ "at_risk": "存在风险",
+ "off_track": "进度偏离",
+ "unknown": "暂无评估"
+ },
+ "healthInfo": {
+ "trigger": "如何计算进展状态?",
+ "title": "进展状态",
+ "description": "比较已完成工作比例和已用时间比例,并自动更新。",
+ "legend": {
+ "on_track": "工作进度与时间计划基本一致。",
+ "at_risk": "工作进度落后于时间计划。",
+ "off_track": "工作进度明显落后,或目标日期已过。",
+ "unknown": "数据不足:没有工作项或未设置目标日期。"
+ },
+ "howCalculated": "计算方式",
+ "workDone": "已完成工作",
+ "timeElapsed": "已用时间",
+ "trail": "工作进度落后于时间的比例",
+ "trailOnTrack": "落后不超过 10%",
+ "trailAtRisk": "落后 10%–25%",
+ "trailOffTrack": "落后超过 25%"
+ },
+ "timeline": {
+ "title": "时间线",
+ "started": "开始日期",
+ "target": "目标日期",
+ "remaining": "剩余时间",
+ "overdue": "已逾期 {days} 天",
+ "dueToday": "今天到期",
+ "left": "剩余 {days} 天",
+ "timeElapsed": "已用时间",
+ "workDone": "已完成工作",
+ "noTargetDate": "设置目标日期以跟踪进度。"
+ },
+ "form": {
+ "title": "标题",
+ "titlePlaceholder": "第三季度发布",
+ "description": "描述",
+ "descriptionPlaceholder": "此计划的目标是什么?",
+ "create": "新建计划",
+ "creating": "正在创建…",
+ "editTitle": "编辑计划",
+ "save": "保存更改"
+ },
+ "pagination": {
+ "range": "第 {from}–{to} 项,共 {total} 项",
+ "previous": "上一页",
+ "next": "下一页"
+ },
+ "select": {
+ "label": "计划",
+ "search": "关联计划…",
+ "empty": "暂无计划。",
+ "none": "无计划"
+ },
+ "feed": {
+ "system": "系统",
+ "createdInitiative": "创建了计划",
+ "createdIssue": "创建了工作项",
+ "renamed": "重命名为“{title}”",
+ "descriptionUpdated": "更新了描述",
+ "descriptionCleared": "清除了描述",
+ "statusSet": "将状态设为 {status}",
+ "statusMoved": "从 {from} 移至 {to}",
+ "prioritySet": "将优先级设为 {priority}",
+ "priorityRemoved": "移除了优先级",
+ "ownerSet": "将负责人设为 {name}",
+ "ownerRemoved": "移除了负责人 {name}",
+ "assigneeSet": "指派给 {name}",
+ "assigneeRemoved": "移除了负责人 {name}",
+ "delegateSet": "委派给 {name}",
+ "delegateRemoved": "移除了执行代理 {name}",
+ "targetDateSet": "将目标日期设为 {date}",
+ "targetDateRemoved": "移除了目标日期",
+ "startDateSet": "将开始日期设为 {date}",
+ "startDateRemoved": "移除了开始日期",
+ "dueDateSet": "将截止日期设为 {date}",
+ "dueDateRemoved": "移除了截止日期",
+ "labelAdded": "添加了标签 {label}",
+ "labelRemoved": "移除了标签 {label}",
+ "typeSet": "将类型设为 {type}",
+ "typeRemoved": "移除了类型",
+ "linked": "关联至 {name}",
+ "unlinked": "取消了与此计划的关联"
+ }
+}
diff --git a/apps/web/messages/zh-CN/invite.json b/apps/web/messages/zh-CN/invite.json
new file mode 100644
index 00000000..bdb1550b
--- /dev/null
+++ b/apps/web/messages/zh-CN/invite.json
@@ -0,0 +1,40 @@
+{
+ "title": "项目邀请",
+ "subtitle": "接受邀请开始合作",
+ "notFoundTitle": "找不到邀请",
+ "notFoundSubtitle": "此链接无效或已失效",
+ "notFoundMessage": "此邀请链接无效或已撤销。",
+ "goToSignIn": "前往登录",
+ "closedTitle": "邀请已关闭",
+ "closedSubtitle": "此邀请已{status, select, accepted {接受} rejected {拒绝} other {关闭}}",
+ "brandSubtitle": "你受邀参与一个项目。",
+ "invitedTo": "你受邀加入",
+ "invitationFor": "发送至 <strong>{email}</strong> 的邀请",
+ "alreadyHandled": "此邀请已{status, select, accepted {接受} rejected {拒绝} other {关闭}}。",
+ "goToApp": "打开应用",
+ "wrongAccount": "此邀请发送至 <invited>{email}</invited>,但你当前以 <current>{sessionEmail}</current> 登录。请退出登录,再使用受邀邮箱接受邀请。",
+ "accept": "接受邀请",
+ "accepting": "正在接受…",
+ "decline": "拒绝邀请",
+ "declining": "正在拒绝…",
+ "acceptError": "无法接受邀请。",
+ "declineError": "无法拒绝邀请。",
+ "emailLabel": "邮箱",
+ "emailHint": "此邀请仅适用于该邮箱。",
+ "passwordLabel": "密码",
+ "passwordHint": "密码至少需要 8 个字符。",
+ "confirmPasswordLabel": "确认密码",
+ "register": "创建账户并加入",
+ "registering": "正在创建账户…",
+ "signIn": "登录",
+ "signingIn": "正在登录…",
+ "haveAccount": "已有账户?",
+ "needAccount": "还没有账户?",
+ "switchToSignIn": "登录",
+ "switchToRegister": "创建账户",
+ "existingAccountNotice": "此邮箱已有账户,请使用密码登录。",
+ "passwordsDoNotMatch": "两次输入的密码不一致。",
+ "genericError": "出现错误,请重试。",
+ "registerFailed": "无法创建账户。",
+ "signInFailed": "无法登录。"
+}
diff --git a/apps/web/messages/zh-CN/issue.json b/apps/web/messages/zh-CN/issue.json
new file mode 100644
index 00000000..624c6b8f
--- /dev/null
+++ b/apps/web/messages/zh-CN/issue.json
@@ -0,0 +1,311 @@
+{
+ "system": "系统",
+ "viewValue": "视图",
+ "notFound": "未找到工作项。",
+ "openAsPage": "在完整页面中打开",
+ "titlePlaceholder": "工作项标题",
+ "noActivity": "暂无活动记录。",
+ "fields": {
+ "state": "状态",
+ "priority": "优先级",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "watching": "正在关注",
+ "type": "类型",
+ "labels": "标签",
+ "initiative": "计划",
+ "cycle": "周期",
+ "startDate": "开始日期",
+ "dueDate": "截止日期",
+ "properties": "属性",
+ "empty": "空",
+ "openInNewTab": "在新标签页中打开"
+ },
+ "menu": {
+ "preview": "预览",
+ "goToIssue": "打开工作项",
+ "status": "状态",
+ "priority": "优先级",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "initiative": "计划",
+ "cycle": "周期",
+ "dueDate": "截止日期",
+ "clearDueDate": "清除截止日期",
+ "labels": "标签",
+ "copyPrompt": "复制提示词",
+ "restore": "恢复",
+ "archive": "归档",
+ "noAssignee": "无负责人",
+ "noDelegate": "无执行代理",
+ "noInitiative": "无计划",
+ "noCycle": "无周期",
+ "promptCopied": "提示词已复制到剪贴板"
+ },
+ "commands": {
+ "preview": "预览工作项",
+ "goToIssue": "打开工作项",
+ "status": "更改状态",
+ "statusPlaceholder": "将状态设为…",
+ "priority": "设置优先级",
+ "assignee": "指派给",
+ "assigneePlaceholder": "指派给…",
+ "noAssignee": "无负责人",
+ "delegate": "委派给代理",
+ "delegatePlaceholder": "委派给…",
+ "noDelegate": "无执行代理",
+ "dueDate": "设置截止日期",
+ "dueDatePlaceholder": "将截止日期设为…",
+ "clearDueDate": "清除截止日期",
+ "labels": "切换标签",
+ "labelsPlaceholder": "切换标签…",
+ "copyShortLink": "复制短链接",
+ "copyPrompt": "复制提示词",
+ "restore": "恢复工作项",
+ "archive": "归档工作项",
+ "delete": "删除工作项",
+ "promptCopied": "提示词已复制到剪贴板",
+ "shortLinkCopied": "短链接已复制"
+ },
+ "dueDatePresets": {
+ "tomorrow": "明天",
+ "endOfWeek": "本周末",
+ "inOneWeek": "一周后"
+ },
+ "actionsBar": {
+ "shortLinkCopied": "短链接已复制",
+ "copyShortLink": "复制短链接",
+ "copied": "已复制!",
+ "copyPrompt": "复制提示词",
+ "sharedPublicly": "已公开共享",
+ "sharePublicly": "公开共享",
+ "restore": "恢复工作项",
+ "archive": "归档工作项",
+ "delete": "删除工作项",
+ "shareIssue": "共享工作项"
+ },
+ "actions": {
+ "deleteTitle": "删除工作项",
+ "archiveTitle": "归档工作项",
+ "apply": "应用",
+ "cannotBeUndone": "此操作无法撤销。",
+ "deleteDescription": "删除 {issue}?这会删除该工作项及其评论、活动和附件。",
+ "archiveDescription": "归档 {issue}?该工作项将离开看板,之后可以恢复。",
+ "applyDescription": "将 <v>{action}</v> 应用于此工作项?"
+ },
+ "create": {
+ "title": "新建工作项",
+ "titlePlaceholder": "工作项标题",
+ "addFieldPlaceholder": "添加字段…",
+ "noFields": "暂无字段。",
+ "description": "描述",
+ "other": "其他",
+ "submit": "新建工作项"
+ },
+ "attachments": {
+ "title": "附件",
+ "add": "添加",
+ "uploading": "正在上传…",
+ "empty": "暂无附件。",
+ "emptyHint": "将文件拖到此处,或点击“添加”上传。",
+ "dropToUpload": "松开以上传文件",
+ "uploadFailed": "上传失败",
+ "uploadFailedCount": "{count, plural, other {无法上传 # 个文件}}",
+ "dragIntoDescription": "拖入描述",
+ "openPreview": "打开预览",
+ "open": "打开 {name}",
+ "insertIntoDescription": "插入描述",
+ "insert": "将 {name} 插入描述",
+ "annotate": "标注",
+ "annotateFile": "标注 {name}",
+ "download": "下载",
+ "downloadFile": "下载 {name}",
+ "deleteFile": "删除 {name}",
+ "preview": "预览 {name}",
+ "remove": "移除 {name}",
+ "removeShort": "移除",
+ "attachFiles": "添加附件",
+ "drop": "拖放文件",
+ "dropCount": "{count, plural, other {拖放 # 个文件}}",
+ "dropHint": "添加到描述并作为工作项附件",
+ "insertShort": "插入",
+ "attachedCount": "{count, plural, other {已添加 # 个附件}}"
+ },
+ "checklists": {
+ "title": "检查清单",
+ "empty": "暂无检查清单。",
+ "emptyHint": "点击“添加”跟踪简单步骤,无需创建子任务。",
+ "titlePlaceholder": "检查清单标题…",
+ "addItem": "添加清单项…",
+ "dragToReorder": "拖动以重新排序",
+ "removeItem": "移除 {item}",
+ "deleteChecklist": "删除检查清单 {title}",
+ "addItemButton": "添加清单项"
+ },
+ "links": {
+ "title": "关联",
+ "remove": "移除与 {issue} 的关联",
+ "emptyHint": "点击“添加”,关联阻塞、重复或相关的工作项。",
+ "newIssue": "新建工作项"
+ },
+ "linkDialog": {
+ "title": "关联工作项:{relation}",
+ "searchPrompt": "搜索与此工作项{relation}的工作项…",
+ "failed": "无法关联工作项",
+ "noMatches": "没有匹配的工作项。",
+ "typeToSearch": "输入内容以搜索此项目的工作项。"
+ },
+ "subtasks": {
+ "title": "子任务",
+ "parent": "父工作项",
+ "newSubtask": "新建子任务",
+ "addExisting": "将现有工作项添加为子任务",
+ "empty": "暂无子任务。",
+ "emptyHint": "点击“添加”将此工作项拆分为子任务。",
+ "detach": "分离 {subtask}",
+ "detachFromParent": "从 {parent} 分离",
+ "subtaskOf": "{issue} 的子任务",
+ "existingIssue": "现有工作项",
+ "searchPrompt": "搜索要添加为子任务的工作项…"
+ },
+ "subtaskDisposal": {
+ "intro": "{issues, plural, other {这些工作项包含}} {count, plural, other {# 个子任务}}。",
+ "deleteToo": "{count, plural, other {同时删除}}",
+ "archiveToo": "{count, plural, other {同时归档}}",
+ "detach": "{count, plural, other {保留并移除父工作项}}",
+ "reassign": "{count, plural, other {移至另一个工作项}}",
+ "reassignTitle": "将子任务移至另一个工作项",
+ "change": "更改",
+ "searchParent": "搜索新的父工作项…"
+ },
+ "comments": {
+ "you": "你",
+ "commentAs": "以 {name} 的身份评论",
+ "placeholder": "输入评论…使用 @ 提及成员",
+ "posting": "正在发布…",
+ "comment": "评论",
+ "toSend": "发送",
+ "unknownAuthor": "未知用户"
+ },
+ "stats": {
+ "title": "统计",
+ "compact": "紧凑",
+ "timeline": "时间线",
+ "leadTime": "前置时间",
+ "cycleTime": "周期时间",
+ "unknownStatus": "未知状态"
+ },
+ "customFields": {
+ "noOptions": "暂无选项。",
+ "yes": "是",
+ "no": "否"
+ },
+ "editor": {
+ "linkUrl": "链接 URL",
+ "insertImage": "插入图片",
+ "insertNamed": "插入 {name}",
+ "descriptionPlaceholder": "添加描述…",
+ "noImages": "暂无已附加图片。请从附件面板上传,或直接拖入编辑器。",
+ "codeBlock": "代码块",
+ "image": "图片"
+ },
+ "cycleSelect": {
+ "label": "周期",
+ "search": "安排到周期…",
+ "empty": "暂无周期。",
+ "none": "无周期"
+ },
+ "annotator": {
+ "title": "标注图片",
+ "loading": "正在加载图片…",
+ "loadFailed": "无法加载图片",
+ "undo": "撤销",
+ "color": "颜色 {color}",
+ "tools": {
+ "marker": "画笔",
+ "rect": "矩形",
+ "ellipse": "椭圆"
+ }
+ },
+ "activity": {
+ "linkedTo": "关联至",
+ "created": "创建了工作项",
+ "titleChanged": "更改了标题",
+ "renamed": "重命名为 <v>“{title}”</v>",
+ "descriptionUpdated": "更新了描述",
+ "descriptionCleared": "清除了描述",
+ "statusMoved": "从 <v>{from}</v> 移至 <v>{to}</v>",
+ "statusSet": "将状态设为 <v>{status}</v>",
+ "assigneeRemoved": "移除了负责人 <v>{name}</v>",
+ "assigneeChanged": "将负责人更改为 <v>{name}</v>",
+ "assigneeSet": "指派给 <v>{name}</v>",
+ "delegateRemoved": "移除了执行代理 <v>{name}</v>",
+ "delegateChanged": "将执行代理更改为 <v>{name}</v>",
+ "delegateSet": "委派给 <v>{name}</v>",
+ "prioritySet": "将优先级设为 <v>{priority}</v>",
+ "priorityRemoved": "移除了优先级",
+ "typeSet": "将类型设为 <v>{type}</v>",
+ "typeRemoved": "移除了类型",
+ "cycleRemoved": "从周期 <v>{cycle}</v> 中移除",
+ "cycleMoved": "从周期 <v>{from}</v> 移至 <v>{to}</v>",
+ "cycleSet": "安排到周期 <v>{cycle}</v>",
+ "startDateSet": "将开始日期设为 <v>{date}</v>",
+ "startDateRemoved": "移除了开始日期",
+ "dueDateSet": "将截止日期设为 <v>{date}</v>",
+ "dueDateRemoved": "移除了截止日期",
+ "labelAdded": "添加了标签 <v>{label}</v>",
+ "labelRemoved": "移除了标签 <v>{label}</v>",
+ "linkAdded": "将此工作项标记为{relation} <v>{issue}</v>",
+ "linkRemoved": "不再{relation} <v>{issue}</v>",
+ "parentDetached": "从 <v>{parent}</v> 分离",
+ "parentMoved": "从 <v>{from}</v> 移至 <v>{to}</v>",
+ "parentSet": "将此工作项设为 <v>{parent}</v> 的子任务",
+ "subtaskAdded": "添加了子任务 <v>{subtask}</v>",
+ "subtaskRemoved": "移除了子任务 <v>{subtask}</v>",
+ "checklistAdded": "添加了检查清单 <v>“{checklist}”</v>",
+ "checklistRenamed": "将检查清单从 <v>“{from}”</v> 重命名为 <v>“{to}”</v>",
+ "checklistRemoved": "移除了检查清单 <v>“{checklist}”</v>",
+ "checklistItemAdded": "将 <v>“{item}”</v> 添加到 <v>{checklist}</v>",
+ "checklistItemRemoved": "从 <v>{checklist}</v> 移除了 <v>“{item}”</v>",
+ "fieldUpdated": "更新了 <v>{field}</v>",
+ "fieldSet": "将 <v>{field}</v> 设为 <v>{value}</v>",
+ "fieldCleared": "清除了 <v>{field}</v>",
+ "archived": "归档了工作项",
+ "restored": "恢复了工作项",
+ "pullRequestMerged": "合并了拉取请求 <v>{pr}</v>",
+ "pullRequestOpened": "打开了拉取请求 <v>{pr}</v>"
+ },
+ "archived": "已归档",
+ "activityHeading": "活动记录",
+ "feedFlat": "平铺",
+ "feedGrouped": "分组",
+ "shareUnavailable": "此共享工作项不可用,链接可能已撤销。",
+ "fieldSelects": {
+ "changeState": "更改状态…",
+ "changeType": "更改类型…",
+ "noType": "无类型",
+ "noAssignee": "无负责人",
+ "assignTo": "指派给…",
+ "you": "你",
+ "members": "成员",
+ "delegateTo": "委派给…",
+ "noDelegate": "无执行代理",
+ "noAgents": "暂无代理。",
+ "noState": "暂无状态。",
+ "noMembers": "暂无成员。",
+ "state": "状态",
+ "type": "类型",
+ "labels": "标签",
+ "labelCount": "{count, plural, other {# 个标签}}"
+ },
+ "watchers": {
+ "watch": "关注",
+ "unwatch": "取消关注"
+ },
+ "effects": {
+ "cleared": "已清除",
+ "noAssignee": "无负责人",
+ "noType": "无类型",
+ "noLabels": "无标签"
+ }
+}
diff --git a/apps/web/messages/zh-CN/issueLinks.json b/apps/web/messages/zh-CN/issueLinks.json
new file mode 100644
index 00000000..7673d754
--- /dev/null
+++ b/apps/web/messages/zh-CN/issueLinks.json
@@ -0,0 +1,16 @@
+{
+ "relations": {
+ "blocked_by": "被阻塞",
+ "blocks": "阻塞",
+ "duplicates": "与之重复",
+ "duplicated_by": "被其重复",
+ "relates": "相关"
+ },
+ "phrases": {
+ "blocked_by": "被以下工作项阻塞:",
+ "blocks": "阻塞以下工作项:",
+ "duplicates": "与以下工作项重复:",
+ "duplicated_by": "被以下工作项重复:",
+ "relates": "与以下工作项相关:"
+ }
+}
diff --git a/apps/web/messages/zh-CN/mcp.json b/apps/web/messages/zh-CN/mcp.json
new file mode 100644
index 00000000..adc3fb48
--- /dev/null
+++ b/apps/web/messages/zh-CN/mcp.json
@@ -0,0 +1,29 @@
+{
+ "title": "MCP 服务器",
+ "description": "通过模型上下文协议将 AI 代理连接到此项目。代理获得其所用 API 密钥对应的访问权限。",
+ "access": "MCP 访问",
+ "enabled": "已启用",
+ "disabled": "已禁用",
+ "ownerOnly": "只有项目所有者可以启用或停用 MCP 访问。",
+ "toggleAria": "切换 MCP 访问",
+ "connectClient": "连接客户端",
+ "keyHint": "在 <link>API 密钥</link>页面创建个人密钥,然后替换代码片段中的 <code>{apiKey}</code>。",
+ "endpoint": "端点",
+ "clientTabsAria": "客户端",
+ "addToFile": "添加到 <code>{file}</code>",
+ "copyAria": "复制",
+ "copied": "已复制到剪贴板",
+ "notes": {
+ "claudeCode": "在终端中运行此命令。",
+ "vscode": "需要 GitHub Copilot。",
+ "claudeDesktop": "Claude Desktop 通过 mcp-remote 桥接器连接远程服务器,需要 Node.js。",
+ "other": "任何支持基于 Streamable HTTP 的 MCP 客户端都可以使用。将客户端指向此端点,并发送 Authorization: Bearer {apiKey} 请求头。"
+ },
+ "clients": {
+ "other": "其他"
+ },
+ "toast": {
+ "enabled": "MCP 访问已启用",
+ "disabled": "MCP 访问已禁用"
+ }
+}
diff --git a/apps/web/messages/zh-CN/members.json b/apps/web/messages/zh-CN/members.json
new file mode 100644
index 00000000..eac47d3b
--- /dev/null
+++ b/apps/web/messages/zh-CN/members.json
@@ -0,0 +1,103 @@
+{
+ "title": "成员",
+ "description": "有权访问此项目的人员。通过邮箱邀请成员;项目所有者可以撤销访问权限。",
+ "columns": {
+ "member": "成员",
+ "role": "角色",
+ "actions": "操作"
+ },
+ "you": "(你)",
+ "aiAgent": "AI 代理",
+ "joined": "· 加入于 {date}",
+ "leaveProject": "退出项目",
+ "revokeAccess": "撤销访问权限",
+ "lastOwner": "项目必须至少保留一名所有者",
+ "leaveTitle": "退出此项目",
+ "leaveDescription": "你将失去对此项目及其工作项的访问权限。项目所有者之后可以重新邀请你。",
+ "revokeTitle": "撤销 {name} 的访问权限",
+ "revokeDescription": "{name} 将失去对此项目的访问权限,之后可以重新邀请。",
+ "selectRole": "选择角色",
+ "editDescription": "编辑描述",
+ "descriptionQuestionSelf": "你在此项目中负责什么?",
+ "descriptionQuestionOther": "此成员在项目中负责什么?",
+ "descriptionPlaceholder": "例如:后端工程师,负责 API 和集成",
+ "invites": {
+ "emailPlaceholder": "[email protected]",
+ "rolePlaceholder": "角色",
+ "invite": "邀请",
+ "inviting": "正在邀请…",
+ "pendingCount": "{count, plural, other {# 个待处理邀请}}",
+ "copyLink": "复制链接",
+ "copied": "已复制",
+ "revokeAction": "撤销邀请",
+ "removeAction": "移除邀请",
+ "invitedBy": "由 {name} 邀请 · ",
+ "createdAt": "创建于 {date}",
+ "respondedAt": "{status, select, accepted {已接受} rejected {已拒绝} other {已更新}} {date}",
+ "status": {
+ "pending": "待处理",
+ "accepted": "已接受",
+ "rejected": "已拒绝"
+ },
+ "revokeTitle": "撤销发送至 {email} 的邀请",
+ "revokeConfirm": "撤销邀请",
+ "revokeDescription": "邀请链接将失效,之后仍可再次邀请此邮箱。"
+ },
+ "roles": {
+ "title": "角色",
+ "description": "自定义角色及其授予的权限。在成员列表中为成员分配角色。",
+ "ownerOnly": "只有项目所有者可以管理角色。",
+ "empty": "暂无自定义角色。新建角色以授予指定范围的访问权限。",
+ "columns": {
+ "role": "角色",
+ "permissions": "权限",
+ "actions": "操作"
+ },
+ "default": "默认",
+ "editAction": "编辑角色",
+ "deleteAction": "删除角色",
+ "defaultUndeletable": "无法删除默认角色",
+ "deleteTitle": "删除角色“{name}”",
+ "deleteDescription": "使用此角色的成员将改为默认角色。此操作无法撤销。",
+ "newRole": "新建角色",
+ "editorTitleEdit": "编辑角色",
+ "editorTitleNew": "新建角色",
+ "editorSubtitle": "角色权限",
+ "namePlaceholder": "例如:贡献者",
+ "resourceColumn": "资源",
+ "toggleActionAll": "切换所有资源的“{action}”权限",
+ "toggleGroupAll": "切换“{group}”的所有权限",
+ "toggleActionGroup": "切换“{group}”的“{action}”权限",
+ "cellAria": "{resource}:{action}",
+ "saveRole": "保存角色",
+ "createRole": "新建角色",
+ "importExport": "角色导入和导出",
+ "copyRoles": "复制角色",
+ "pasteRoles": "粘贴角色",
+ "nothingToCopy": "没有可复制的自定义角色。",
+ "copiedRoles": "已复制 {count, plural, other {# 个角色}}。",
+ "copyFailed": "无法复制到剪贴板。",
+ "readFailed": "无法读取剪贴板。",
+ "parseFailed": "无法从剪贴板读取角色。",
+ "import": {
+ "title": "应用剪贴板中的角色",
+ "summary": "将应用 {count, plural, other {# 个角色}}。覆盖角色会替换其权限矩阵,成员仍保留该角色。",
+ "preview": "预览权限",
+ "apply": "{count, plural, =0 {应用角色} one {应用 # 个角色} other {应用 # 个角色}}",
+ "applied": "已应用角色:新建 {created} 个,更新 {updated} 个{skipped, plural, =0 {} other {,跳过 # 个}}。",
+ "actions": {
+ "create": "新建",
+ "update": "覆盖",
+ "skip": "跳过(默认)"
+ }
+ },
+ "transferErrors": {
+ "invalidJson": "剪贴板中不是有效的 JSON。",
+ "notAnExport": "剪贴板中不是角色导出数据。",
+ "empty": "角色导出数据为空。"
+ }
+ },
+ "promoted": "成员已晋升为所有者",
+ "roleUpdated": "成员角色已更新",
+ "descriptionUpdated": "成员描述已更新"
+}
diff --git a/apps/web/messages/zh-CN/meta.json b/apps/web/messages/zh-CN/meta.json
new file mode 100644
index 00000000..c874c254
--- /dev/null
+++ b/apps/web/messages/zh-CN/meta.json
@@ -0,0 +1,4 @@
+{
+ "title": "It's a Plan:面向人员和 AI 代理的工作项管理",
+ "description": "自托管的开源项目管理和工作项跟踪工具,内置 AI 代理。你可以将工作指派给人员或代理,也可以通过 API、Webhook 和 MCP 进行管理。"
+}
diff --git a/apps/web/messages/zh-CN/nav.json b/apps/web/messages/zh-CN/nav.json
new file mode 100644
index 00000000..c51566f4
--- /dev/null
+++ b/apps/web/messages/zh-CN/nav.json
@@ -0,0 +1,46 @@
+{
+ "inbox": "收件箱",
+ "dashboards": "仪表盘",
+ "workItems": "工作项",
+ "initiatives": "计划",
+ "cycles": "周期",
+ "notes": "便签",
+ "aiTeam": "AI 团队",
+ "chat": "聊天",
+ "chatWithAiTeam": "与 AI 团队聊天",
+ "configure": "配置",
+ "aiAgents": "AI 代理",
+ "configuration": "配置",
+ "members": "成员",
+ "notifications": "通知",
+ "notificationPreferences": "通知偏好",
+ "projectSettings": "项目设置",
+ "backToProject": "返回项目",
+ "roles": "角色",
+ "apiDocs": "API 文档",
+ "api": "API",
+ "mcpServer": "MCP 服务器",
+ "godMode": "管理模式",
+ "godModeSection": "管理模式:{section}",
+ "instanceSettings": "实例设置",
+ "backToApp": "返回应用",
+ "integrations": "集成",
+ "projects": "项目",
+ "noProjects": "暂无项目",
+ "newProject": "新建项目",
+ "manageProjects": "管理项目",
+ "role": "角色:{role}",
+ "search": "搜索或运行命令…",
+ "searchHint": "搜索或运行命令({key})",
+ "newIssueHint": "新建工作项({key})",
+ "aiChat": "AI 聊天",
+ "sections": "功能区",
+ "doubleClickToRename": "双击重命名",
+ "groups": {
+ "project": "项目",
+ "workflow": "工作流",
+ "automation": "自动化"
+ },
+ "godModeOwnerOnly": "管理模式仅对实例管理员开放。",
+ "project": "项目"
+}
diff --git a/apps/web/messages/zh-CN/newProject.json b/apps/web/messages/zh-CN/newProject.json
new file mode 100644
index 00000000..4000127a
--- /dev/null
+++ b/apps/web/messages/zh-CN/newProject.json
@@ -0,0 +1,54 @@
+{
+ "name": "名称",
+ "key": "标识(简短,例如 MKT)",
+ "copyKey": "标识",
+ "description": "描述",
+ "issueTypes": "工作项类型",
+ "typesCreated": "将创建 {count, plural, other {# 个工作项类型}}",
+ "defaultType": "新工作项默认使用 {type} 类型,可在设置中编辑。",
+ "presets": {
+ "general": "通用",
+ "software": "软件开发",
+ "product": "产品",
+ "content": "内容",
+ "marketing": "市场营销",
+ "design": "设计",
+ "sales": "销售",
+ "operations": "运营",
+ "support": "客户支持",
+ "recruiting": "招聘"
+ },
+ "copyConfiguration": "复制配置",
+ "selectAll": "全选",
+ "clearAll": "全部清除",
+ "copyGroups": {
+ "workflow": "工作流",
+ "automation": "自动化",
+ "project": "项目",
+ "views": "视图",
+ "aiTeam": "AI 团队"
+ },
+ "copyItems": {
+ "states": "状态",
+ "issueTypes": "工作项类型",
+ "labels": "标签",
+ "customFields": "自定义字段",
+ "views": "视图",
+ "dashboards": "仪表盘",
+ "actions": "操作",
+ "configuration": "配置",
+ "roles": "角色",
+ "notificationProviders": "通知提供商",
+ "webhooks": "Webhook",
+ "integrations": "集成",
+ "tools": "工具",
+ "skills": "技能",
+ "agents": "代理",
+ "schedules": "定时任务"
+ },
+ "title": "新建项目",
+ "copyTitle": "复制项目“{name}”",
+ "create": "新建项目",
+ "copyAction": "复制项目",
+ "copyName": "{name} 副本"
+}
diff --git a/apps/web/messages/zh-CN/notes.json b/apps/web/messages/zh-CN/notes.json
new file mode 100644
index 00000000..796557bb
--- /dev/null
+++ b/apps/web/messages/zh-CN/notes.json
@@ -0,0 +1,57 @@
+{
+ "noAccess": "你无权访问便签。",
+ "allBoards": "所有便签板",
+ "searchBoards": "搜索便签板…",
+ "noBoardsFound": "未找到便签板。",
+ "boardAccess": "便签板访问权限",
+ "boardAccessPlaceholder": "选择访问权限…",
+ "nothingFound": "未找到结果。",
+ "noAccessShort": "无权访问",
+ "agent": "代理",
+ "members": "成员",
+ "agents": "代理",
+ "newBoard": "新建便签板",
+ "boardOptions": "便签板选项",
+ "renameBoard": "重命名便签板",
+ "newBoardDescription": "用于放置便签的自由画布。",
+ "boardName": "名称",
+ "boardNamePlaceholder": "便签板名称",
+ "makePublic": "设为公开",
+ "makePrivate": "设为私有",
+ "privateHint": "只有你能看到此便签板,之后可以与选定成员共享。",
+ "publicHint": "项目中的所有成员都能看到此便签板。",
+ "createBoard": "新建便签板",
+ "emptyTitle": "暂无便签板",
+ "emptyDescription": "便签板是用于放置便签的自由画布。",
+ "backgroundColor": "背景颜色",
+ "fullscreen": "全屏",
+ "exitFullscreen": "退出全屏",
+ "notePlaceholder": "输入便签内容…",
+ "noteTitlePlaceholder": "标题",
+ "dragNote": "拖动便签",
+ "bold": "粗体",
+ "italic": "斜体",
+ "checklist": "检查清单",
+ "convertToIssue": "转换为工作项",
+ "deleteNote": "删除便签",
+ "save": {
+ "unsaved": "有未保存的更改",
+ "saving": "正在保存…",
+ "saved": "已保存",
+ "error": "保存失败"
+ },
+ "visibility": {
+ "public": "公开",
+ "private": "私有",
+ "restricted": "指定成员"
+ },
+ "visibilityHint": {
+ "public": "所有项目成员都能看到此便签板",
+ "private": "只有创建者能看到此便签板",
+ "restricted": "只有创建者和选定成员能看到此便签板"
+ },
+ "addNote": "添加便签",
+ "accessHint": "只有这些成员可以打开",
+ "createdBy": "由 {name} 创建",
+ "backgroundColors": "背景颜色"
+}
diff --git a/apps/web/messages/zh-CN/palette.json b/apps/web/messages/zh-CN/palette.json
new file mode 100644
index 00000000..a32412f7
--- /dev/null
+++ b/apps/web/messages/zh-CN/palette.json
@@ -0,0 +1,12 @@
+{
+ "placeholder": "输入命令或搜索…",
+ "noResults": "未找到结果。",
+ "issues": "工作项",
+ "searching": "正在搜索…",
+ "selectAllIssues": "选择所有工作项",
+ "newIssue": "新建工作项",
+ "newProject": "新建项目",
+ "board": "看板",
+ "commands": "命令",
+ "switchProject": "切换项目"
+}
diff --git a/apps/web/messages/zh-CN/permissions.json b/apps/web/messages/zh-CN/permissions.json
new file mode 100644
index 00000000..a7ac979f
--- /dev/null
+++ b/apps/web/messages/zh-CN/permissions.json
@@ -0,0 +1,46 @@
+{
+ "viewPermissions": "查看权限",
+ "none": "未授予任何权限",
+ "grantedCount": "已授予 {count, plural, other {# 项权限}}",
+ "resources": {
+ "work_items": "工作项",
+ "initiatives": "计划",
+ "cycles": "周期",
+ "dashboards": "仪表盘",
+ "views": "工作项视图",
+ "members_invite": "邀请",
+ "members_manage": "成员",
+ "states": "状态",
+ "issue_types": "工作项类型",
+ "labels": "标签",
+ "ai_agents": "AI 代理",
+ "integrations": "集成",
+ "agent_skills": "代理技能",
+ "agent_tools": "代理工具",
+ "custom_fields": "自定义字段",
+ "workflow_config": "工作流配置",
+ "actions": "操作",
+ "webhooks": "Webhook",
+ "note_boards": "便签板",
+ "danger_zone": "危险操作"
+ },
+ "actions": {
+ "create": "新建",
+ "edit": "编辑",
+ "read": "查看",
+ "delete": "删除"
+ },
+ "groups": {
+ "workItems": "工作项",
+ "dashboards": "仪表盘",
+ "notes": "便签",
+ "ai": "AI",
+ "configuration": "配置",
+ "members": "成员",
+ "project": "项目",
+ "other": "其他"
+ },
+ "resourceColumn": "资源",
+ "allowed": "允许",
+ "notAllowed": "不允许"
+}
diff --git a/apps/web/messages/zh-CN/projects.json b/apps/web/messages/zh-CN/projects.json
new file mode 100644
index 00000000..9d3bc30a
--- /dev/null
+++ b/apps/web/messages/zh-CN/projects.json
@@ -0,0 +1,31 @@
+{
+ "label": "管理项目",
+ "title": "管理项目",
+ "description": "查看你加入的所有项目及相应权限。可以复制现有项目的配置来新建项目。所有者可以删除项目,成员可以退出项目。删除项目会永久移除其中的所有内容。",
+ "empty": "你尚未加入任何项目。",
+ "columns": {
+ "project": "项目",
+ "role": "角色",
+ "permissions": "权限",
+ "actions": "操作"
+ },
+ "yourPermissions": "你的权限",
+ "copyAction": "复制项目",
+ "deleteAction": "删除项目",
+ "leaveAction": "退出项目",
+ "roles": {
+ "owner": "所有者",
+ "member": "成员"
+ },
+ "deleteDialog": {
+ "title": "删除 {name}?",
+ "confirm": "永久删除",
+ "description": "这将永久删除 <strong>{name}</strong> 及其中的所有工作项、评论、附件和设置。此操作无法撤销。",
+ "typeToConfirm": "输入 <code>{key}</code> 以确认。"
+ },
+ "leaveDialog": {
+ "title": "退出 {name}?",
+ "confirm": "退出项目",
+ "description": "你将失去对 <strong>{name}</strong> 及其工作项的访问权限。如需重新加入,需要项目所有者重新邀请。"
+ }
+}
diff --git a/apps/web/messages/zh-CN/sections.json b/apps/web/messages/zh-CN/sections.json
new file mode 100644
index 00000000..25555183
--- /dev/null
+++ b/apps/web/messages/zh-CN/sections.json
@@ -0,0 +1,109 @@
+{
+ "account": {
+ "profile": "个人资料",
+ "preferences": "偏好设置",
+ "accounts": "关联账户",
+ "security": "安全",
+ "api-keys": "API 密钥"
+ },
+ "godGroups": {
+ "management": "管理",
+ "instance": "实例"
+ },
+ "god": {
+ "users": {
+ "label": "用户",
+ "description": "此实例中的所有账户,包括全局角色、邮箱验证状态和各用户可访问的项目。"
+ },
+ "projects": {
+ "label": "项目",
+ "description": "此实例中的所有项目,包括项目内容、最近活动时间和访问成员。"
+ },
+ "authentication": {
+ "label": "身份验证",
+ "description": "设置谁可以注册、如何验证账户以及可用的外部登录提供商。"
+ },
+ "hotkeys": {
+ "label": "键盘快捷键",
+ "description": "设置实例中所有用户的默认快捷键。每位用户可在偏好设置中重新绑定。"
+ },
+ "storage": {
+ "label": "存储",
+ "description": "设置单个文件大小、允许的附件类型和每个项目的存储配额。"
+ },
+ "telegram": {
+ "label": "Telegram",
+ "description": "设置用户关联 Telegram 账户所用的机器人,以及项目未单独配置时发送通知的机器人。"
+ },
+ "email": {
+ "label": "邮件服务商",
+ "description": "设置实例用于发送密码重置、邮箱验证和登录链接的邮件服务商。"
+ },
+ "auth-provider": {
+ "label": "身份验证提供商",
+ "description": "设置用户可以用于登录的外部账户。"
+ }
+ },
+ "settings": {
+ "general": {
+ "label": "常规",
+ "description": "设置项目名称、描述和启用的功能区。"
+ },
+ "notifications": {
+ "label": "通知提供商",
+ "description": "设置此项目发送通知所用的邮件(SMTP 或 Resend)和 Telegram 机器人凭据。"
+ },
+ "states": {
+ "label": "状态",
+ "description": "设置工作项在工作流中经过的状态,每个状态显示为一个状态列。"
+ },
+ "issue-types": {
+ "label": "工作项类型",
+ "description": "设置此项目可以包含的工作项类型及其专属字段。"
+ },
+ "labels": {
+ "label": "标签",
+ "description": "设置用于组织和筛选项目工作项的标签。"
+ },
+ "custom-fields": {
+ "label": "自定义字段",
+ "description": "设置工作项的额外字段,可应用于所有类型或指定工作项类型。"
+ },
+ "configuration": {
+ "label": "配置",
+ "description": "设置子任务与父工作项的联动方式,以及何时归档长期无活动的工作项。"
+ },
+ "actions": {
+ "label": "操作",
+ "description": "设置工作项上的快捷操作,一次点击即可更改字段。"
+ },
+ "schedules": {
+ "label": "定时任务",
+ "description": "按固定时间重复运行代理任务。"
+ },
+ "webhooks": {
+ "label": "Webhook",
+ "description": "将项目事件发送到外部 URL,并使用每个 Webhook 独立的密钥签名。"
+ },
+ "github": {
+ "label": "GitHub",
+ "description": "当关联的拉取请求在 GitHub 上合并时自动关闭工作项。"
+ },
+ "ai-agents": {
+ "label": "代理",
+ "description": "可以接受工作项委派的 AI 代理。"
+ },
+ "integrations": {
+ "label": "集成",
+ "description": "代理访问 AI 提供商和工具时使用的凭据。"
+ },
+ "agent-skills": {
+ "label": "技能",
+ "description": "内置代理可按需加载的可复用指令。"
+ },
+ "agent-tools": {
+ "label": "工具",
+ "description": "代理可以调用的工具,每个工具连接到一个集成凭据。"
+ }
+ }
+}
diff --git a/apps/web/messages/zh-CN/settings.json b/apps/web/messages/zh-CN/settings.json
new file mode 100644
index 00000000..57fe067f
--- /dev/null
+++ b/apps/web/messages/zh-CN/settings.json
@@ -0,0 +1,594 @@
+{
+ "schedules": {
+ "newTitle": "新建定时任务",
+ "editTitle": "编辑定时任务",
+ "create": "新建定时任务",
+ "creating": "正在创建…",
+ "save": "保存定时任务",
+ "dialogDescription": "选择代理,描述任务并设置运行时间。",
+ "namePlaceholder": "每日任务检查",
+ "agent": "代理",
+ "selectAgent": "选择代理",
+ "task": "任务",
+ "taskPlaceholder": "检查未关闭的工作项并更新需要处理的内容。",
+ "taskHint": "代理每次运行时都会收到此任务。",
+ "scheduleUtc": "运行时间(UTC)",
+ "schedule": "运行时间",
+ "nextRun": "下次运行",
+ "lastRun": "上次运行",
+ "showPresets": "显示预设时间",
+ "inputPlaceholder": "每个工作日早上 9:00 或 0 9 * * 1-5",
+ "runs": "运行时间:{description} UTC",
+ "cronLabel": "Cron:",
+ "runsSuffix": "{description} UTC",
+ "statusActive": "已启用",
+ "statusPaused": "已暂停",
+ "viewTask": "查看任务",
+ "noRunsShort": "暂无运行记录",
+ "pause": "暂停定时任务",
+ "resume": "恢复定时任务",
+ "runHistory": "运行记录",
+ "moreActions": "更多操作",
+ "runNow": "立即运行",
+ "edit": "编辑定时任务",
+ "delete": "删除定时任务",
+ "runStatus": {
+ "success": "成功",
+ "failed": "失败",
+ "pending": "待处理"
+ },
+ "noRuns": "暂无运行记录。",
+ "error": "错误",
+ "result": "结果",
+ "noOutput": "无输出",
+ "loadFailed": "无法加载定时任务",
+ "loadFailedHint": "请检查连接后重试。",
+ "tryAgain": "重试",
+ "noAgents": "没有可用于定时任务的代理",
+ "noAgentsHint": "定时任务会运行一个内置代理。",
+ "createAgent": "新建代理",
+ "empty": "暂无定时任务",
+ "emptyHint": "选择代理、任务和运行频率。",
+ "deleteMessage": "定时任务 <v>{name}</v> 及其运行记录将被删除。此操作无法撤销。"
+ },
+ "integrations": {
+ "add": "添加凭据",
+ "edit": "编辑凭据",
+ "delete": "删除凭据",
+ "back": "返回集成",
+ "label": "标签(可选)",
+ "labelPlaceholder": "例如:团队账户",
+ "labelHint": "用于区分同一集成的不同凭据。密钥会加密存储。",
+ "noFields": "无字段",
+ "search": "搜索集成",
+ "noMatches": "没有与“{query}”匹配的集成。",
+ "empty": "暂无凭据",
+ "emptyHint": "代理需要凭据才能使用 AI 提供商或工具。",
+ "deleteMessage": "删除 {integration} 凭据?使用它的代理和工具将停止工作,直到添加新凭据。",
+ "groups": {
+ "llm": {
+ "title": "AI 提供商",
+ "hint": "内置代理使用的模型"
+ },
+ "tool": {
+ "title": "工具",
+ "hint": "代理可以作为工具调用的集成"
+ }
+ },
+ "columns": {
+ "integration": "集成",
+ "credentials": "凭据"
+ }
+ },
+ "agents": {
+ "newAgent": "新建代理",
+ "create": "新建代理",
+ "save": "保存代理",
+ "delete": "删除代理",
+ "edit": "编辑代理",
+ "empty": "暂无代理",
+ "emptyHint": "代理由内置运行时运行或通过 API 驱动。",
+ "agent": "代理",
+ "sheetSubtitle": "可以接受工作项委派的 AI 代理",
+ "agentSettings": "代理设置",
+ "basics": "基本信息",
+ "kind": "类型",
+ "kindLabel": {
+ "external": "外部",
+ "internal": "内置"
+ },
+ "kindHint": {
+ "external": "通过 API 驱动",
+ "internal": "由内置运行时运行"
+ },
+ "namePlaceholder": "例如:分诊机器人",
+ "username": "用户名",
+ "usernamePlaceholder": "例如:triage-bot",
+ "usernameHint": "可使用字母、数字、点、连字符和下划线,最多 64 个字符。",
+ "access": "访问权限",
+ "accessHint": "限制代理可以执行的操作",
+ "role": "角色",
+ "chooseRole": "选择角色",
+ "defaultRole": "默认角色",
+ "roleHintExternal": "代理的 API 请求只能执行此角色允许的操作。",
+ "roleHintInternal": "代理只能执行角色和所选操作都允许的操作。角色拒绝的操作会在运行时失败。",
+ "model": "模型",
+ "modelHint": "提供商、模型和系统提示词",
+ "credential": "凭据",
+ "chooseCredential": "选择凭据",
+ "noCredential": "请先添加 AI 提供商密钥",
+ "noCredentialHint": "代理需要提供商密钥才能选择模型。",
+ "addKey": "在集成页面添加密钥",
+ "chooseModel": "选择模型",
+ "searchModel": "搜索或输入模型 ID",
+ "loadingModels": "正在加载模型…",
+ "noModel": "未设置模型",
+ "instructions": "指令",
+ "instructionsPlaceholder": "代理的行为方式和需要遵守的规则",
+ "expandInstructions": "展开指令编辑器",
+ "expandEditor": "展开编辑器",
+ "triggers": "触发条件",
+ "triggersHint": "代理自动运行的条件",
+ "onMention": "响应提及",
+ "onMentionHint": "在评论中被 @ 提及时运行。",
+ "onDelegation": "响应委派",
+ "onDelegationHint": "设为工作项的执行代理时运行。",
+ "actions": "操作",
+ "actionsHint": "代理在项目中可以执行的操作",
+ "noActions": "暂无可用操作。",
+ "clearAll": "全部清除",
+ "selectAll": "全选",
+ "skills": "技能",
+ "skillsHint": "代理可以加载的可复用指令",
+ "noSkills": "技能库中暂无技能,请先在技能页面添加。",
+ "searchSkills": "搜索技能",
+ "noDescription": "无描述",
+ "tools": "工具",
+ "toolsHint": "代理可以调用的外部集成",
+ "noTools": "暂无已配置工具,请先在工具页面添加。",
+ "searchTools": "搜索工具",
+ "advanced": "高级设置",
+ "advancedHint": "采样、步骤上限和记忆",
+ "temperature": "温度",
+ "optional": "可选",
+ "maxSteps": "最大步骤数",
+ "memory": "对话记忆",
+ "memoryHint": "在对话线程中回顾最近的消息。",
+ "memoryCount": "记住最近 N 条消息",
+ "memoryCountPlaceholder": "例如:20",
+ "keyWarning": "请立即复制密钥。为确保安全,密钥只显示一次,之后无法再次获取。",
+ "copyKey": "复制密钥",
+ "dismiss": "关闭",
+ "regenerateTitle": "重新生成 API 密钥",
+ "regenerateConfirm": "重新生成密钥",
+ "keyRegenerated": "密钥已重新生成",
+ "apiKey": "API 密钥",
+ "apiKeyValue": "API 密钥 {start}…",
+ "runHistory": "运行记录",
+ "noRuns": "暂无运行记录。在评论中提及代理或将工作项委派给代理后,运行记录会显示在这里。",
+ "loadMore": "再加载 25 条",
+ "endOfHistory": "已显示全部记录",
+ "manualTask": "手动任务",
+ "scheduledTask": "定时任务",
+ "failed": "失败",
+ "task": "任务",
+ "error": "错误",
+ "queue": "队列",
+ "testChat": "测试对话",
+ "moreActions": "更多操作",
+ "createdOn": "创建于 {date}",
+ "runsSubtitle": "@{username} · 因提及或委派触发的运行",
+ "regenerateMessage": "将为 <v>{name}</v> 签发新密钥,当前密钥会立即失效。所有使用当前密钥的连接都必须更新。",
+ "deleteMessage": "<v>{name}</v> 及其 API 密钥将被删除,并从所有指派或委派给它的工作项中移除。此操作无法撤销。",
+ "actionCount": "{count, plural, other {# 个操作}}",
+ "toolCount": "{count, plural, other {# 个工具}}",
+ "skillCount": "{count, plural, other {# 个技能}}",
+ "triggersNone": "无",
+ "triggerMention": "提及",
+ "triggerDelegation": "委派",
+ "noMatch": "没有与“{query}”匹配的结果。",
+ "useCustomModel": "使用“{query}”",
+ "readOnlyAlwaysOn": "只读权限始终启用,无法关闭。",
+ "instructionsLabel": "说明",
+ "done": "完成",
+ "columns": {
+ "triggers": "触发条件",
+ "configuration": "配置"
+ },
+ "created": "已创建代理 @{username}",
+ "saved": "已保存代理 @{username}"
+ },
+ "skills": {
+ "newSkill": "新建技能",
+ "create": "新建技能",
+ "delete": "删除技能",
+ "edit": "编辑技能",
+ "empty": "暂无技能",
+ "emptyHint": "编写 Markdown、上传文件或从 GitHub 导入。",
+ "name": "名称(可选)",
+ "namePlaceholder": "默认使用 SKILL.md frontmatter 中的名称",
+ "descriptionPlaceholder": "向代理说明何时应加载此技能",
+ "noDescription": "无描述",
+ "unsaved": "有未保存的更改",
+ "addReference": "添加参考资料",
+ "source": {
+ "inline": "内联",
+ "upload": "已上传",
+ "github": "GitHub"
+ },
+ "tabInline": "编写 Markdown",
+ "tabUpload": "上传文件",
+ "tabGithub": "从 GitHub 导入",
+ "skillFile": "SKILL.md 文件",
+ "loaded": "已加载 {file}",
+ "trustWarning": "只导入你信任的技能",
+ "trustWarning1": "技能会成为代理遵循的指令,请先审查来源。",
+ "trustWarning2": "只导入 SKILL.md 及其 Markdown 参考资料,脚本会被跳过。",
+ "githubUrl": "GitHub URL",
+ "githubUrlPlaceholder": "https://github.com/owner/repo 或技能文件夹",
+ "githubUrlHint": "可以填写仓库、文件夹或 SKILL.md。",
+ "findSkills": "查找技能",
+ "importTitle": "从 GitHub 导入技能",
+ "foundCount": "{count, plural, other {找到 # 个技能。请选择要导入的技能。}}",
+ "matchCount": "显示 {shown} 个,共 {total, plural, other {# 个技能}}",
+ "selectAll": "全选",
+ "searchPlaceholder": "按名称或描述搜索",
+ "noMatches": "没有与“{query}”匹配的技能。",
+ "importCount": "{count, plural, =0 {导入技能} other {导入 # 个技能}}",
+ "files": "文件",
+ "skill": "技能",
+ "description": "描述",
+ "referenceCount": "{count, plural, other {# 份参考资料}}"
+ },
+ "tools": {
+ "add": "添加工具",
+ "delete": "删除工具",
+ "back": "返回工具",
+ "tool": "工具",
+ "scopes": "权限范围",
+ "noScopes": "无权限范围",
+ "empty": "暂无工具",
+ "emptyHint": "工具只需配置一次,之后可以为任意代理启用。",
+ "search": "搜索工具",
+ "noMatches": "没有与“{query}”匹配的工具。",
+ "scopesLabel": "所需令牌权限",
+ "credential": "凭据",
+ "chooseCredential": "选择凭据",
+ "noCredential": "尚无 {integration} 凭据。请先在集成页面添加。",
+ "deleteMessage": "移除 {tool}?使用它的代理将无法再访问此工具。",
+ "scopesUpper": "权限范围"
+ },
+ "notifications": {
+ "title": "通知",
+ "description": "选择要接收的工作项事件及通知渠道。",
+ "email": "邮件",
+ "telegram": "Telegram",
+ "events": {
+ "assigned": "被指派处理某一工作项",
+ "mentioned": "在评论中提及",
+ "commented": "关注的工作项有新评论",
+ "state_changed": "关注的工作项状态发生变化"
+ },
+ "eventsTitle": "事件",
+ "emailProvider": "邮件服务商",
+ "emailProviderHint": "使用系统服务商或项目自己的服务商发送。凭据会加密存储。",
+ "systemAvailable": "通知通过此实例配置的服务商发送,此处无需填写凭据。",
+ "systemUnavailable": "实例服务商不可用。请联系管理员配置并共享给项目,或为此项目设置服务商。",
+ "host": "主机",
+ "port": "端口",
+ "encryption": "加密方式",
+ "encryptionOptions": {
+ "none": "无",
+ "ssl": "SSL",
+ "tls": "TLS"
+ },
+ "username": "用户名",
+ "password": "密码",
+ "passwordPlaceholder": "SMTP 密码",
+ "timeout": "超时(秒)",
+ "optional": "可选",
+ "apiKey": "API 密钥",
+ "telegramBot": "Telegram 机器人",
+ "telegramBotHint": "用于发送通知的机器人。成员可在个人偏好设置中选择自己的对话,令牌会加密存储。",
+ "botToken": "Bot API 令牌(可选)",
+ "telegramAccount": "Telegram 账户",
+ "telegramAccountHint": "你参与的每个项目都会将 Telegram 通知发送到已关联账户。",
+ "noTelegramAccount": "未关联 Telegram 账户",
+ "emailSaved": "邮件服务商已保存",
+ "telegramSaved": "Telegram 服务商已保存",
+ "preferencesSaved": "通知偏好已保存"
+ },
+ "transfer": {
+ "actions": {
+ "create": "新设",
+ "update": "更新颜色",
+ "unchanged": "无变动"
+ },
+ "copyFailed": "无法复制到剪贴板。",
+ "readFailed": "无法读取剪贴板。",
+ "errors": {
+ "invalidJson": "剪贴板中没有有效的 JSON。",
+ "wrongPayload": "剪贴板中没有预期的导出数据。",
+ "empty": "导出数据为空。"
+ }
+ },
+ "general": {
+ "saved": "项目已更新",
+ "project": "项目",
+ "projectHint": "项目标识是工作项编号的前缀,创建后无法更改。",
+ "key": "标识",
+ "features": "功能",
+ "featuresHint": "选择此项目显示的功能区。关闭功能只会隐藏入口,不会删除内容。",
+ "featureHints": {
+ "dashboards": "在已保存的仪表盘中显示图表和指标。",
+ "initiatives": "将相关工作项作为同一计划跟踪。",
+ "cycles": "按固定时间段规划工作项。",
+ "notes": "用于便签的自由画布。",
+ "subtasks": "将工作项拆分为父工作项下的子任务。",
+ "checklists": "在工作项中跟踪简单步骤。",
+ "issueStats": "统计工作项在各状态中停留的时间。"
+ },
+ "featureOn": "已启用{feature}",
+ "featureOff": "已停用{feature}"
+ },
+ "configuration": {
+ "saved": "更改已保存",
+ "subtasks": "子任务",
+ "subtasksHint": "只有关闭状态会同步。在未关闭状态之间移动工作项不会触发联动。",
+ "completeParent": "所有子任务完成后关闭父工作项",
+ "completeParentHint": "最后一个子任务关闭时,将父工作项移至已关闭状态。",
+ "closeSubtasks": "父工作项关闭时关闭子任务",
+ "closeSubtasksHint": "将未关闭的子任务移至父工作项的关闭状态。",
+ "archive": "归档",
+ "archiveHint": "归档已关闭的工作项,使看板保持整洁。",
+ "completedIssues": "已完成的工作项",
+ "canceledIssues": "已取消的工作项",
+ "staleHint": "超过此天数无活动",
+ "days": "天"
+ },
+ "states": {
+ "addState": "添加{type}状态",
+ "emptyTitle": "暂无{type}状态",
+ "emptyHint": "为此分组添加工作流状态。",
+ "newState": "新建状态",
+ "namePlaceholder": "状态名称",
+ "dragToReorder": "拖动以重新排序",
+ "edit": "编辑状态",
+ "delete": "删除状态",
+ "deleteTitle": "删除状态“{name}”",
+ "deleteConfirm": "删除状态",
+ "moveAndDelete": "移动工作项并删除状态",
+ "deleteNoIssues": "此状态下没有工作项,将删除该状态。",
+ "deleteHasIssues": "此状态下有 {count, plural, other {# 个工作项}}。请选择如何处理。",
+ "moveIssues": "将工作项移至另一个状态",
+ "selectState": "选择状态",
+ "stateOption": "{name}({type})",
+ "deleteIssues": "永久删除工作项",
+ "menu": "状态导入与导出",
+ "copy": "复制状态",
+ "paste": "粘贴状态",
+ "nothingToCopy": "没有可复制的状态。",
+ "copied": "已复制 {count, plural, other {# 个状态}}。",
+ "parseFailed": "无法从剪贴板读取状态。",
+ "importTitle": "从剪贴板应用状态",
+ "importSummary": "将应用 {count, plural, other {# 个状态}}。匹配的状态保留分组,只更新颜色。",
+ "importApply": "{count, plural, other {应用 # 个状态}}",
+ "imported": "已应用状态:新建 {created} 个,更新 {updated} 个。"
+ },
+ "issueTypes": {
+ "add": "添加类型",
+ "namePlaceholder": "类型名称",
+ "default": "默认",
+ "emptyTitle": "暂无工作项类型",
+ "emptyHint": "添加此项目可以包含的工作项类型,每种类型可以拥有自己的字段。",
+ "columns": {
+ "type": "类型",
+ "issues": "工作项"
+ },
+ "issueCount": "{count, plural, =0 {没有工作项} other {# 个工作项}}",
+ "edit": "编辑工作项类型",
+ "delete": "删除工作项类型",
+ "deleteTitle": "删除类型“{name}”",
+ "deleteConfirm": "删除类型",
+ "deleteMessage": "{count, plural, =0 {没有工作项使用此类型。} other {# 个工作项将不再具有类型。}}此类型专用的自定义字段也会删除。此操作无法撤销。",
+ "menu": "工作项类型导入和导出",
+ "copy": "复制工作项类型",
+ "paste": "粘贴工作项类型",
+ "nothingToCopy": "没有可复制的工作项类型。",
+ "copied": "已复制 {count, plural, other {# 个工作项类型}}。",
+ "parseFailed": "无法从剪贴板读取工作项类型。",
+ "importTitle": "从剪贴板应用工作项类型",
+ "importSummary": "将应用 {count, plural, other {# 个工作项类型}}。匹配的类型只更新颜色。",
+ "importApply": "{count, plural, other {应用 # 个类型}}",
+ "imported": "已应用工作项类型:新建 {created} 个,更新 {updated} 个。"
+ },
+ "labels": {
+ "add": "添加",
+ "newLabel": "新建标签",
+ "newGroup": "新建分组",
+ "namePlaceholder": "标签名称",
+ "groupNamePlaceholder": "组名称",
+ "ungrouped": "未分组",
+ "groups": "分组",
+ "labels": "标签",
+ "noLabels": "无标签",
+ "dropHere": "拖到此处",
+ "addLabelTo": "向 {name} 添加标签",
+ "addLabel": "添加标签",
+ "editGroup": "编辑组",
+ "deleteGroup": "删除组",
+ "editLabel": "编辑标签",
+ "deleteLabel": "删除标签",
+ "dragToGroup": "拖动到组",
+ "dragLabel": "拖动标签",
+ "issueCount": "{count, plural, other {# 个工作项}}",
+ "deleteLabelTitle": "删除标签“{name}”",
+ "deleteLabelMessage": "{count, plural, =0 {没有工作项使用此标签。} other {将从 # 个工作项中移除此标签。}}此操作无法撤销。",
+ "deleteGroupTitle": "删除分组“{name}”",
+ "deleteGroupMessage": "{count, plural, =0 {此分组没有标签。} other {# 个标签将取消分组但继续保留。}}此操作无法撤销。",
+ "menu": "标签导入和导出",
+ "copy": "复制标签",
+ "paste": "粘贴标签",
+ "nothingToCopy": "没有可复制的标签。",
+ "copied": "已复制 {count, plural, other {# 个标签}}。",
+ "parseFailed": "无法从剪贴板读取标签。",
+ "importTitle": "应用剪贴板上的标签",
+ "importSummary": "将应用 {count, plural, other {# 项}}。匹配的标签保留分组,只更新颜色。",
+ "importApply": "{count, plural, other {应用 # 项}}",
+ "imported": "已应用标签:新建 {created} 个,更新 {updated} 个。",
+ "dropToUngroup": "将标签拖到此处以移出分组",
+ "dropToGroup": "将标签拖到此处以添加到 {name}"
+ },
+ "customFields": {
+ "fieldTypes": {
+ "text": "文本",
+ "markdown": "Markdown",
+ "url": "URL",
+ "number": "数字",
+ "boolean": "复选框",
+ "date": "日期",
+ "select": "单选",
+ "multi_select": "多选"
+ },
+ "global": "全局(所有类型)",
+ "globalShort": "全局",
+ "addField": "添加字段",
+ "addFieldTo": "向 {group} 添加字段",
+ "noFields": "暂无字段。",
+ "editField": "编辑字段",
+ "deleteField": "删除字段",
+ "deleteTitle": "删除字段“{name}”",
+ "deleteMessage": "此字段及工作项中为它设置的所有值都会删除。此操作无法撤销。",
+ "namePlaceholder": "字段名称",
+ "optionsPlaceholder": "选项:低、中、高",
+ "type": "类型",
+ "mainInfo": "主要信息",
+ "mainInfoTooltip": "显示在工作项正文中,而不是“属性”区域",
+ "mainInfoMeta": "主要信息",
+ "menu": "自定义字段导入和导出",
+ "copy": "复制自定义字段",
+ "paste": "粘贴自定义字段",
+ "nothingToCopy": "没有可复制的自定义字段。",
+ "copied": "已复制 {count, plural, other {# 个字段}}。",
+ "parseFailed": "无法从剪贴板读取自定义字段。",
+ "copyTitle": "复制自定义字段",
+ "copyQuestion": "此项目有 {scoped, plural, other {# 个字段}} 限定到工作项类型。要同时复制这些字段,还是只复制 {global, plural, other {# 个全局字段}}?",
+ "copyGlobalOnly": "仅全局",
+ "copyIncludeScoped": "包含类型专属字段",
+ "importTitle": "从剪贴板应用自定义字段",
+ "importSummary": "将添加 {count, plural, other {# 个字段}}。",
+ "importSummaryWithTypes": "将添加 {count, plural, other {# 个字段}},并创建 {types, plural, other {# 个新工作项类型}}:{names}。",
+ "importApply": "{count, plural, other {应用 # 个字段}}",
+ "actionNew": "新设",
+ "actionExists": "已存在",
+ "imported": "已应用自定义字段:新建 {created} 个。",
+ "importedWithTypes": "已应用自定义字段:新建 {created} 个,添加 {types} 个工作项类型。"
+ },
+ "actions": {
+ "new": "新建操作",
+ "emptyTitle": "暂无操作",
+ "emptyHint": "选择操作适用的工作项,然后设置它要更改的字段。",
+ "columns": {
+ "action": "操作",
+ "thenSet": "设置为"
+ },
+ "when": "适用条件",
+ "alwaysAvailable": "始终可用",
+ "noChanges": "无更改",
+ "edit": "编辑操作",
+ "duplicate": "复制操作",
+ "delete": "删除操作",
+ "copySuffix": "{name} 副本",
+ "deleteTitle": "删除操作“{name}”",
+ "deleteMessage": "此操作将从所有工作项中删除。此操作无法撤销。",
+ "dialogNew": "新建操作",
+ "dialogEdit": "编辑操作",
+ "dialogHint": "选择图标和名称,并设置操作适用的工作项及要更改的字段。",
+ "namePlaceholder": "操作名称(例如:批准)",
+ "availableWhen": "适用条件",
+ "noConditions": "无条件,始终可用。",
+ "thenSet": "设置为",
+ "create": "新建操作",
+ "creating": "正在创建…",
+ "save": "保存操作",
+ "addField": "添加字段",
+ "removeField": "移除字段",
+ "icon": "操作图标",
+ "searchIcons": "搜索图标",
+ "noIcons": "未找到图标",
+ "setDate": "设置日期"
+ },
+ "webhooks": {
+ "new": "新建 Webhook",
+ "emptyTitle": "暂无 Webhook",
+ "emptyHint": "设置请求地址并选择要发送的事件。",
+ "columns": {
+ "endpoint": "端点",
+ "events": "事件"
+ },
+ "active": "已启用",
+ "disabled": "已禁用",
+ "hideSecret": "隐藏密钥",
+ "revealSecret": "显示密钥",
+ "copySecret": "复制密钥",
+ "deliveryHistory": "投递记录",
+ "moreActions": "更多操作",
+ "edit": "编辑 Webhook",
+ "delete": "删除 Webhook",
+ "deleteTitle": "删除 Webhook",
+ "deleteMessage": "向 <v>{url}</v> 的投递将停止。此操作无法撤销。",
+ "dialogNew": "新建 Webhook",
+ "dialogEdit": "编辑 Webhook",
+ "dialogHint": "设置请求地址并选择要发送的项目事件。",
+ "payloadUrl": "请求地址",
+ "events": "事件",
+ "create": "新建 Webhook",
+ "creating": "正在创建…",
+ "save": "保存 Webhook",
+ "noDeliveries": "暂无投递记录。",
+ "loadMore": "再加载 25 条",
+ "endOfHistory": "已显示全部记录",
+ "queued": "已排队",
+ "attempts": "· {count} 次尝试",
+ "sent": "已发送",
+ "response": "响应",
+ "responseWithStatus": "响应 · HTTP {status}",
+ "noResponse": "(无响应)",
+ "statuses": {
+ "success": "成功",
+ "failed": "失败",
+ "pending": "待处理"
+ }
+ },
+ "github": {
+ "enable": "启用 GitHub 集成",
+ "enableHint": "关联在拉取请求中通过“close KEY-123”等表达方式提及的工作项。",
+ "connection": "连接",
+ "connectionHint": "将 GitHub 仓库连接到此项目。",
+ "connectionRestricted": "只有拥有集成编辑权限的成员可以查看连接详情。",
+ "tabCli": "GitHub CLI",
+ "tabManual": "手动",
+ "payloadUrl": "请求地址",
+ "webhookSecret": "Webhook 密钥",
+ "regenerate": "重新生成",
+ "secretRegenerated": "已生成新密钥,请在 GitHub Webhook 中更新。",
+ "manualHint": "在 GitHub 仓库中打开 <b>Settings → Webhooks → Add webhook</b>。粘贴请求地址和密钥,将内容类型设为 <code>application/json</code>,并只选择 <b>Pull requests</b> 事件。",
+ "cliHint": "需要 <link>GitHub CLI</link>。复制此命令,将 <code>{placeholder}</code> 替换为你的仓库,然后在终端中运行。",
+ "commandCopied": "命令已复制。替换 owner/repo 后运行。",
+ "copied": "已复制 {label}",
+ "lastDelivery": "最近投递",
+ "lastDeliveryAt": "{ago}收到",
+ "lastDeliveryFrom": "{ago}从 {repo} 收到",
+ "noDelivery": "尚未收到投递",
+ "automations": "拉取请求自动化",
+ "automationsHint": "在拉取请求标题或描述中使用关键字和工作项编号,例如“close KEY-123”。合并后,close、fix、resolve、complete 和 implement 会关闭工作项;reference、part of 和 relates 会建立关联但不关闭。使用“skip KEY-123”可忽略某个工作项。",
+ "onMerge": "关联的拉取请求合并时",
+ "onMergeHint": "PR 合并到默认分支时,将工作项移至此状态。",
+ "onMergeNone": "第一个已完成状态",
+ "onOpen": "关联的 PR 打开时",
+ "onOpenHint": "只移动尚未开始的工作项;进行中或已关闭的工作项保持不变。",
+ "onOpenNone": "不执行操作",
+ "changeState": "更改状态…",
+ "noState": "无状态。"
+ }
+}
diff --git a/apps/web/messages/zh-CN/shell.json b/apps/web/messages/zh-CN/shell.json
new file mode 100644
index 00000000..7ccc747f
--- /dev/null
+++ b/apps/web/messages/zh-CN/shell.json
@@ -0,0 +1,8 @@
+{
+ "noProjectAccess": "你无权访问此项目。",
+ "projectUnavailable": "此项目不可用。",
+ "noProjects": "暂无项目,请先新建一个项目。",
+ "noProjectsTitle": "暂无项目",
+ "noProjectsHint": "新建第一个项目,然后开始在看板中规划工作项。",
+ "createProject": "新建项目"
+}
diff --git a/apps/web/messages/zh-CN/updates.json b/apps/web/messages/zh-CN/updates.json
new file mode 100644
index 00000000..9da3b0c6
--- /dev/null
+++ b/apps/web/messages/zh-CN/updates.json
@@ -0,0 +1,16 @@
+{
+ "updateAvailable": "有可用更新",
+ "releaseHistory": "版本历史",
+ "runningOutdated": "当前版本为 {current},最新版本为 {latest}。",
+ "runningUnknown": "当前版本为 {current},无法获取最新版本。",
+ "runningLatest": "当前版本 {current} 已是最新版本。",
+ "noReleases": "此构建不包含版本说明。",
+ "badgeRunning": "当前版本",
+ "badgeNew": "新版本",
+ "earlier": "更早的版本",
+ "check": "检查更新",
+ "checking": "正在检查",
+ "lastChecked": "上次检查:{date}",
+ "allReleases": "所有版本",
+ "noNotes": "此版本没有版本说明。"
+}
diff --git a/apps/web/messages/zh-CN/views.json b/apps/web/messages/zh-CN/views.json
new file mode 100644
index 00000000..96918dd4
--- /dev/null
+++ b/apps/web/messages/zh-CN/views.json
@@ -0,0 +1,14 @@
+{
+ "all": "全部",
+ "newView": "新建视图",
+ "switchView": "切换视图",
+ "searchViews": "搜索视图…",
+ "noViews": "未找到视图。",
+ "options": "视图选项",
+ "share": "共享",
+ "shared": "已共享",
+ "editView": "编辑视图",
+ "shareBoard": "共享看板",
+ "newViewHint": "根据当前筛选条件和显示设置创建视图",
+ "filter": "筛选"
+}
diff --git a/apps/web/messages/zh-CN/workItems.json b/apps/web/messages/zh-CN/workItems.json
new file mode 100644
index 00000000..c51adff8
--- /dev/null
+++ b/apps/web/messages/zh-CN/workItems.json
@@ -0,0 +1,105 @@
+{
+ "newIssue": "新建工作项",
+ "collapse": "折叠",
+ "expand": "展开",
+ "hide": "隐藏",
+ "show": "显示",
+ "hiddenColumns": "隐藏列",
+ "hiddenGroups": "隐藏分组",
+ "selectAll": "全选",
+ "deselectAll": "取消全选",
+ "resizeColumn": "调整列宽",
+ "viewNamePlaceholder": "所有工作项",
+ "sortedOrder": "工作项当前按 {field} 排序。切换为手动排序后才能移动。",
+ "statusSince": "自 {date} 起处于当前状态",
+ "createdOn": "创建于 {date}",
+ "updatedOn": "更新于 {date}",
+ "subtasksProgress": "子任务 {done}/{total}",
+ "subtasksDone": "已完成 {done}/{total} 个子任务",
+ "columns": {
+ "title": "标题",
+ "status": "状态",
+ "statusAge": "处于当前状态",
+ "priority": "优先级",
+ "type": "类型",
+ "initiative": "计划",
+ "cycle": "周期",
+ "labels": "标签",
+ "startDate": "开始",
+ "dueDate": "截止",
+ "created": "创建时间",
+ "updated": "更新时间"
+ },
+ "calendar": {
+ "previousMonth": "上个月",
+ "nextMonth": "下个月",
+ "today": "今天",
+ "moreIssues": "另有 {count} 个",
+ "issueCount": "{count, plural, other {# 个工作项}}",
+ "weekdays": {
+ "sun": "周日",
+ "mon": "周一",
+ "tue": "周二",
+ "wed": "周三",
+ "thu": "周四",
+ "fri": "周五",
+ "sat": "周六"
+ },
+ "noDate": {
+ "dueDate": "无截止日期",
+ "startDate": "无开始日期"
+ },
+ "allDated": {
+ "dueDate": "所有工作项都已设置截止日期。",
+ "startDate": "所有工作项都已设置开始日期。"
+ }
+ },
+ "timeline": {
+ "empty": "暂无可放入时间线的工作项。",
+ "expandGroup": "展开分组",
+ "collapseGroup": "折叠分组",
+ "inferredStart": "根据创建日期推算开始时间",
+ "inferredStartDraggable": "根据创建日期推算开始时间——拖动以设置"
+ },
+ "bulk": {
+ "selected": "已选择 {count} 项",
+ "status": "状态",
+ "priority": "优先级",
+ "assignee": "负责人",
+ "delegate": "执行代理",
+ "initiative": "计划",
+ "cycle": "周期",
+ "labels": "标签",
+ "noAssignee": "无负责人",
+ "noDelegate": "无执行代理",
+ "noInitiative": "无计划",
+ "noCycle": "无周期",
+ "archive": "归档",
+ "clearSelection": "清除选择"
+ },
+ "removal": {
+ "archive": {
+ "title": "{count, plural, other {归档工作项}}",
+ "confirm": "{count, plural, other {归档 # 个工作项}}",
+ "description": "{count, plural, other {归档选中的 # 个工作项?它们将离开看板,之后可以恢复。}}"
+ },
+ "delete": {
+ "title": "{count, plural, other {删除工作项}}",
+ "confirm": "{count, plural, other {删除 # 个工作项}}",
+ "description": "{count, plural, other {删除选中的 # 个工作项?}}这还会删除评论、活动记录和附件。此操作无法撤销。"
+ }
+ },
+ "share": {
+ "issueTitle": "工作项",
+ "issueUnavailable": "此工作项不可用。",
+ "boardUnavailable": "此共享看板不可用,链接可能已撤销。"
+ },
+ "groups": {
+ "noAssignee": "无负责人",
+ "noDelegate": "无执行代理",
+ "noPriority": "无优先级",
+ "noType": "无类型",
+ "noInitiative": "无计划",
+ "noCycle": "无周期"
+ }
+}
diff --git a/apps/web/src/hooks/useDateFnsLocale.ts b/apps/web/src/hooks/useDateFnsLocale.ts
index 2f245ced..9e7f959e 100644
--- a/apps/web/src/hooks/useDateFnsLocale.ts
+++ b/apps/web/src/hooks/useDateFnsLocale.ts
@@ -1,12 +1,12 @@
'use client';
import { useLocale } from 'next-intl';
-import { enUS, uk, type Locale as DateFnsLocale } from 'date-fns/locale';
+import { enUS, uk, zhCN, type Locale as DateFnsLocale } from 'date-fns/locale';
// The date-fns locale matching the interface language, for the components that
// format dates themselves instead of going through next-intl (the calendar's
// month and weekday names).
-const LOCALES: Record<string, DateFnsLocale> = { en: enUS, uk };
+const LOCALES: Record<string, DateFnsLocale> = { en: enUS, uk, 'zh-CN': zhCN };
export function useDateFnsLocale(): DateFnsLocale {
return LOCALES[useLocale()] ?? enUS;
diff --git a/apps/web/src/i18n/locales.ts b/apps/web/src/i18n/locales.ts
index 1abc604a..8de85e07 100644
--- a/apps/web/src/i18n/locales.ts
+++ b/apps/web/src/i18n/locales.ts
@@ -1,6 +1,6 @@
// The languages the interface ships with. `en` is the source language: every key
// exists in `messages/en.json`, and a missing translation falls back to it.
-export const LOCALES = ['en', 'uk'] as const;
+export const LOCALES = ['en', 'uk', 'zh-CN'] as const;
export type Locale = (typeof LOCALES)[number];
@@ -15,11 +15,13 @@ export const LOCALE_COOKIE = 'NEXT_LOCALE';
export const LOCALE_LABELS: Record<Locale, string> = {
en: 'English',
uk: 'Українська',
+ 'zh-CN': '简体中文',
};
export const LOCALE_FLAGS: Record<Locale, string> = {
en: '🇬🇧',
uk: '🇺🇦',
+ 'zh-CN': '🇨🇳',
};
export function isLocale(value: string | undefined | null): value is Locale {