From 0772d3518735e0f4e24f5612d68c9f3e0da3153d Mon Sep 17 00:00:00 2001 From: maidamaliziasimnw Date: Fri, 10 Jul 2026 18:14:38 +0000 Subject: [PATCH] =?UTF-8?q?fix(i18n):=20=E5=91=BD=E4=BB=A4=E7=BB=84?= =?UTF-8?q?=E7=AE=80=E4=BB=8B=E8=A1=A5=E9=BD=90=20i18n=E2=80=94=E2=80=94?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20ignore=20=E7=BB=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E9=94=AE=E5=90=8D=20cmd.ignore.short?= =?UTF-8?q?=EF=BC=8C9=20=E4=B8=AA=E7=BB=84=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=94=B9=E4=B8=BA=E7=BF=BB=E8=AF=91=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- internal/i18n/locales/en-US.json | 12 +++++++++++- internal/i18n/locales/zh-CN.json | 12 +++++++++++- shortcuts/register.go | 18 +++++++++--------- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/internal/i18n/locales/en-US.json b/internal/i18n/locales/en-US.json index 0739395..dc1dc1c 100644 --- a/internal/i18n/locales/en-US.json +++ b/internal/i18n/locales/en-US.json @@ -267,5 +267,15 @@ "success.config.set": "✓ {key} = {value}", "warning.auth.not_logged_in": "✗ Not logged in", "warning.auth.token_unverified": "✓ Token stored (but cannot verify: {message})", - "warning.auth.user_unavailable": "✓ Token stored (user info unavailable)" + "warning.auth.user_unavailable": "✓ Token stored (user info unavailable)", + "cmd.ignore.short": "Ignore file template operations", + "cmd.pipeline.short": "Pipeline operations", + "cmd.compare.short": "Compare branches, tags, or commits", + "cmd.wiki.short": "Wiki page management", + "cmd.health.short": "Project health data collection", + "cmd.workflow.short": "AI agent workflow analysis", + "cmd.label.short": "Issue label operations", + "cmd.license.short": "License operations", + "cmd.member.short": "Repository member operations", + "cmd.milestone.short": "Milestone operations" } diff --git a/internal/i18n/locales/zh-CN.json b/internal/i18n/locales/zh-CN.json index 2e6fc4d..c47aa6b 100644 --- a/internal/i18n/locales/zh-CN.json +++ b/internal/i18n/locales/zh-CN.json @@ -267,5 +267,15 @@ "success.config.set": "✓ 已设置 {key} = {value}", "warning.auth.not_logged_in": "✗ 未登录", "warning.auth.token_unverified": "✓ Token 已保存(但无法验证:{message})", - "warning.auth.user_unavailable": "✓ Token 已保存(用户信息不可用)" + "warning.auth.user_unavailable": "✓ Token 已保存(用户信息不可用)", + "cmd.ignore.short": "忽略文件模板操作", + "cmd.pipeline.short": "流水线操作", + "cmd.compare.short": "比较分支、标签或提交", + "cmd.wiki.short": "Wiki 页面管理", + "cmd.health.short": "项目健康度数据采集", + "cmd.workflow.short": "AI Agent 工作流分析", + "cmd.label.short": "Issue 标签操作", + "cmd.license.short": "许可证操作", + "cmd.member.short": "仓库成员操作", + "cmd.milestone.short": "里程碑操作" } diff --git a/shortcuts/register.go b/shortcuts/register.go index 1fedc7e..5af53de 100644 --- a/shortcuts/register.go +++ b/shortcuts/register.go @@ -63,11 +63,11 @@ func RegisterAll(root *cobra.Command, translators ...*i18n.Translator) { descriptions := map[string]string{ "repo": tr.T("cmd.repo.short"), "issue": tr.T("cmd.issue.short"), - "label": "Issue label operations", - "license": "License operations", - "member": "Repository member operations", - "milestone": "Milestone operations", - "pipeline": "Pipeline operations", + "label": tr.T("cmd.label.short"), + "license": tr.T("cmd.license.short"), + "member": tr.T("cmd.member.short"), + "milestone": tr.T("cmd.milestone.short"), + "pipeline": tr.T("cmd.pipeline.short"), "pr": tr.T("cmd.pr.short"), "profile": tr.T("cmd.profile.short"), "release": tr.T("cmd.release.short"), @@ -76,13 +76,13 @@ func RegisterAll(root *cobra.Command, translators ...*i18n.Translator) { "user": tr.T("cmd.user.short"), "search": tr.T("cmd.search.short"), "ci": tr.T("cmd.ci.short"), - "compare": "Compare branches, tags, or commits", + "compare": tr.T("cmd.compare.short"), "dataset": tr.T("cmd.dataset.short"), "webhook": tr.T("cmd.webhook.short"), - "wiki": "Wiki page management", - "health": "Project health data collection", + "wiki": tr.T("cmd.wiki.short"), + "health": tr.T("cmd.health.short"), "ignore": tr.T("cmd.ignore.short"), - "workflow": "AI agent workflow analysis", + "workflow": tr.T("cmd.workflow.short"), } for name, shortcuts := range groups { -- 2.34.1