fix(i18n): 命令组简介补齐 i18n——修复 ignore 组显示原始键名 cmd.ignore.short,9 个组硬编码英文改为翻译键

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
maidamaliziasimnw 2026-07-10 18:14:38 +00:00
parent 604303e953
commit 0772d35187
3 changed files with 31 additions and 11 deletions

View File

@ -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"
}

View File

@ -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": "里程碑操作"
}

View File

@ -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 {