fix(i18n): add missing cmd.ignore.short group description key #364
Loading…
Reference in New Issue
No description provided.
Delete Branch "heke1228/gitlink-cli:fix/ignore-i18n-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
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。它是唯一引用了缺失键的命令组。改动
cmd.ignore.short(EN:Gitignore template operations/ ZH:Gitignore 模板操作)。shortcuts/register_test.go增加断言:任何 group 的 Short 不应是未解析的cmd.*.short键。验证
go build ./...、go test ./...通过。