fix(i18n): add missing cmd.ignore.short group description key #364

Merged
wbtiger merged 1 commits from heke1228/gitlink-cli:fix/ignore-i18n-key into master 2026-07-14 20:40:59 +08:00
Contributor

背景

ignore 命令组的描述通过 tr.T("cmd.ignore.short") 渲染(shortcuts/register.go),但该键在 internal/i18n/locales/en-US.jsonzh-CN.json均缺失,导致 gitlink-cli --helpgitlink-cli ignore --help 把该组描述显示为字面量 cmd.ignore.short。它是唯一引用了缺失键的命令组。

改动

  • 两个 locale 各补 cmd.ignore.short(EN: Gitignore template operations / ZH: Gitignore 模板操作)。
  • shortcuts/register_test.go 增加断言:任何 group 的 Short 不应是未解析的 cmd.*.short 键。

验证

go build ./...go test ./... 通过。

## 背景 `ignore` 命令组的描述通过 `tr.T("cmd.ignore.short")` 渲染(`shortcuts/register.go`),但该键在 `internal/i18n/locales/en-US.json` 与 `zh-CN.json` 中**均缺失**,导致 `gitlink-cli --help` 和 `gitlink-cli ignore --help` 把该组描述显示为字面量 `cmd.ignore.short`。它是唯一引用了缺失键的命令组。 ## 改动 - 两个 locale 各补 `cmd.ignore.short`(EN: `Gitignore template operations` / ZH: `Gitignore 模板操作`)。 - `shortcuts/register_test.go` 增加断言:任何 group 的 Short 不应是未解析的 `cmd.*.short` 键。 ## 验证 `go build ./...`、`go test ./...` 通过。
heke1228 added 1 commit 2026-07-08 12:17:38 +08:00
17ec98f198
fix(i18n): add missing cmd.ignore.short group description key
Signed-off-by: 林晨 (Leo Cheng) <chengkelfan@qq.com>
wbtiger merged commit 4b435b0bf9 into master 2026-07-14 20:40:54 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#364
No description provided.