Skip to content

fix(i18n): correct zh translation of "Pin Tab" to 固定标签 - #9157

Merged
AmethystLiang merged 1 commit into
stablyai:mainfrom
weibiansanjue:fix/zh-pin-tab-translation
Jul 18, 2026
Merged

AmethystLiang merged 1 commit into
stablyai:mainfrom
weibiansanjue:fix/zh-pin-tab-translation

Conversation

@weibiansanjue

Copy link
Copy Markdown
Contributor

Summary

The Simplified Chinese catalog rendered the "Pin Tab" tab context-menu action as "引脚标签" — a literal noun reading of pin ("图钉/引脚"), which is wrong for the action. It should read "固定标签", matching:

  • its paired "Unpin Tab" action, already translated as "取消固定标签", and
  • the existing pinned-state wording used elsewhere in the catalog (e.g. "已固定", "固定标签页").

Changes

  • Add a 'Pin Tab': '固定标签' entry to ZH_VALUE_OVERRIDES (config/scripts/locale-zh-value-overrides.mjs) so catalog regeneration keeps the fix — the locale files are machine-generated and then patched by these override files.
  • Apply the corrected value to the three generated occurrences in src/renderer/src/i18n/locales/zh.json:
    • EditorTabContextMenu
    • EditorFileTabContextMenu
    • SortableTabContextMenu

Verification

  • npx vitest run config/scripts/locale-translation-policy.zh-round5.test.mjs → 7 passed
  • No remaining 引脚 occurrences in the locale files.

🤖 Generated with Claude Code

The Chinese catalog rendered the "Pin Tab" tab context-menu action as
"引脚标签" (a literal noun reading of "pin"), which is wrong for the
action. Use "固定标签" to match its paired "Unpin Tab" (取消固定标签) and
the existing "已固定" pinned-state wording elsewhere in the catalog.

Adds a "Pin Tab" entry to ZH_VALUE_OVERRIDES so catalog regeneration
keeps the fix, and applies the corrected value to the three generated
occurrences in zh.json (EditorTabContextMenu, EditorFileTabContextMenu,
SortableTabContextMenu).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AmethystLiang
AmethystLiang merged commit 1bd757a into stablyai:main Jul 18, 2026
1 check passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants