Skip to content

Commit

Permalink
小修复 + 新增词条:仓库 - 浏览代码 - 正则 (#235)
Browse files Browse the repository at this point in the history
Signed-off-by: [qzn to fb’s nj12] <100760086+qznfbnj@users.noreply.github.com>
  • Loading branch information
qznfbnj authored Jul 8, 2024
1 parent 0193a70 commit 9e6135c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions locals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8741,9 +8741,13 @@ I18N.zh["repository/blob"] = { // 仓库 - 浏览代码
},
"regexp": [ // 正则翻译
...I18N.zh["repository-public"]["regexp"],
[/(\d+) lines? \((\d+) loc\) ·/, "$1 行 ($1 个位置) ·"],
[/(\d+) lines? \((\d+) loc\) ·/, "$1 行($2 非空行)·"], // loc = 代码行(line of code)= 行数 - 空行数(lines - blank lines)
[/(\d+) References?/, "$1 次引用"],
[/Blame prior to change ([a-f0-9]{7}), made on/, "追溯更改之前 $1 ,修改于"],
[/Blame prior to change ([a-f0-9]{7}), made on ([^ ]+)/, "追溯 $1($2)之前的更改"],

// 代码追溯页面
[/(\d+) contributors?/, "$1 位贡献者"],
[/(\d+) commits?/, "$1 个提交"],
],
};
I18N.zh["repository/blame"] = I18N.zh["repository/blob"];
Expand Down

0 comments on commit 9e6135c

Please sign in to comment.