mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
Unify all branch, commit hash and tag references across formatters to the push commit style (inline code + link). Adds commitLink/branchLink/tagLink helpers in formatters/helpers.ts, links branches to /tree/, tags to /releases/tag/, and PR head branches to the fork repo. Drops the backticks from the en/zh locale templates around {ref}/{sha} since the formatters now inject pre-linked values.
198 lines
5.2 KiB
TypeScript
198 lines
5.2 KiB
TypeScript
export const zh = {
|
|
actions: {
|
|
opened: "已打开",
|
|
closed: "已关闭",
|
|
reopened: "重新打开",
|
|
synchronized: "已同步",
|
|
edited: "已编辑",
|
|
labeled: "已添加标签",
|
|
unlabeled: "已移除标签",
|
|
assigned: "已分配",
|
|
unassigned: "已取消分配",
|
|
converted_to_draft: "已转为草稿",
|
|
ready_for_review: "可供审查",
|
|
completed: "已完成",
|
|
published: "已发布",
|
|
created: "已创建",
|
|
deleted: "已删除",
|
|
started: "已开始",
|
|
added: "已添加",
|
|
removed: "已移除",
|
|
submitted: "已提交",
|
|
dismissed: "已忽略",
|
|
approved: "已批准",
|
|
changes_requested: "请求修改",
|
|
answered: "已回答",
|
|
unanswered: "未回答",
|
|
pinned: "已置顶",
|
|
unpinned: "已取消置顶",
|
|
transferred: "已转移",
|
|
publicized: "已公开",
|
|
privatized: "已设为私有",
|
|
locked: "已锁定",
|
|
unlocked: "已解锁",
|
|
renamed: "已重命名",
|
|
archived: "已归档",
|
|
unarchived: "已取消归档",
|
|
fixed: "已修复",
|
|
appeared_in_branch: "出现在分支中",
|
|
reopened_by_user: "用户重新打开",
|
|
closed_by_user: "用户关闭",
|
|
},
|
|
fields: {
|
|
branch: "分支",
|
|
changes: "变更",
|
|
labels: "标签",
|
|
assignees: "指派人",
|
|
milestone: "里程碑",
|
|
status: "状态",
|
|
run: "运行",
|
|
job: "作业",
|
|
workflow: "工作流",
|
|
context: "上下文",
|
|
duration: "耗时",
|
|
type: "类型",
|
|
name: "名称",
|
|
description: "描述",
|
|
file: "文件",
|
|
commit: "提交",
|
|
environment: "环境",
|
|
url: "链接",
|
|
service: "服务",
|
|
severity: "严重程度",
|
|
rule: "规则",
|
|
package: "包",
|
|
vulnerable_range: "受影响版本",
|
|
summary: "摘要",
|
|
progress: "进度",
|
|
due: "截止日期",
|
|
number: "编号",
|
|
color: "颜色",
|
|
label: "标签",
|
|
transferred: "已转移",
|
|
renamed: "已重命名",
|
|
details: "详情",
|
|
branch_tag: "分支/标签",
|
|
},
|
|
common: {
|
|
footer: "{repo}",
|
|
unknown: "未知",
|
|
no_message: "无消息",
|
|
repository: "仓库",
|
|
untitled: "无标题",
|
|
github: "GitHub",
|
|
and_n_more: "... 还有 {count} 个提交",
|
|
n_files: "{count} 个文件",
|
|
},
|
|
events: {
|
|
push: {
|
|
force_push: "**强制推送**",
|
|
branch_created: "分支已创建",
|
|
commits_pushed: "**{count}** 个提交已推送到 {ref}",
|
|
view_comparison: "[查看比较]({url})",
|
|
added: "+{count} 新增",
|
|
removed: "-{count} 删除",
|
|
modified: "~{count} 修改",
|
|
title: "{repo}: 推送了 {count} 个提交",
|
|
},
|
|
pr: {
|
|
action_pr: "{emoji}**{action}** 拉取请求",
|
|
title: "{repo}#{number}: {title}",
|
|
},
|
|
issues: {
|
|
action_issue: "{emoji}**{action}** 议题",
|
|
title: "{repo}#{number}: {title}",
|
|
},
|
|
issue_comment: {
|
|
title: "{repo}#{number}: {title}",
|
|
action_comment: "{emoji}**{action}** 评论",
|
|
},
|
|
workflow_run: {
|
|
title: "{repo}: {name} — {conclusion}",
|
|
},
|
|
workflow_job: {
|
|
title: "{repo}: 作业 {name} — {conclusion}",
|
|
},
|
|
status: {
|
|
title: "{repo}: {context} — {state}",
|
|
},
|
|
ping: {
|
|
title: "{repo}: Webhook ping",
|
|
},
|
|
release: {
|
|
action_release: "{emoji}**{action}** 发布 `{tag}`",
|
|
title: "{repo}: {name}",
|
|
},
|
|
create: {
|
|
title: "{repo}: {emoji}已创建{type} {ref}",
|
|
},
|
|
delete: {
|
|
title: "{repo}: {emoji}已删除{type} {ref}",
|
|
},
|
|
star: {
|
|
starred: "已加星标",
|
|
unstarred: "已取消星标",
|
|
title: "{repo}: {emoji}{label}",
|
|
},
|
|
fork: {
|
|
title: "{repo}: {emoji}复刻到 {forkee}",
|
|
},
|
|
check_run: {
|
|
title: "{repo}: {name} — {conclusion}",
|
|
},
|
|
check_suite: {
|
|
title: "{repo}: 检查套件 {conclusion}",
|
|
},
|
|
pr_review: {
|
|
action_review: "{emoji}**{action}** 审查",
|
|
title: "{repo}#{number}: {title}",
|
|
},
|
|
pr_review_comment: {
|
|
action_inline: "{emoji}**{action}** 行内评论",
|
|
title: "{repo}#{number}: {title}",
|
|
line: " (第 {position} 行)",
|
|
},
|
|
commit_comment: {
|
|
action_comment: "{emoji}**{action}**",
|
|
title: "{repo}: 提交 {sha} 的评论",
|
|
},
|
|
deployment: {
|
|
title: "{repo}: 部署到 `{env}` — {state}",
|
|
},
|
|
member: {
|
|
title: "{repo}: {emoji}{action} 协作者: {name}",
|
|
},
|
|
label: {
|
|
title: "{repo}: {emoji}标签 {action}: {name}",
|
|
},
|
|
milestone: {
|
|
title: "{repo}: {emoji}里程碑 {action}: {title}",
|
|
},
|
|
discussion: {
|
|
title: "{repo}#{number}: {title}",
|
|
action_discussion: "{emoji}{action} 讨论{category}",
|
|
},
|
|
discussion_comment: {
|
|
title: "{repo}#{number}: {title}",
|
|
action_comment: "{emoji}**{action}** 评论",
|
|
},
|
|
repository: {
|
|
title: "{repo}: {emoji}仓库 {action}",
|
|
open: "打开仓库",
|
|
public: "公开",
|
|
private: "私有",
|
|
internal: "内部",
|
|
is_fork: "这是 Fork 仓库",
|
|
visibility: "可见性",
|
|
},
|
|
code_scanning: {
|
|
title: "{repo}: 代码扫描 {action}",
|
|
},
|
|
dependabot: {
|
|
title: "{repo}: Dependabot {action}",
|
|
},
|
|
generic: {
|
|
title: "{repo}: {event}{action}",
|
|
},
|
|
},
|
|
};
|