fix: 补全预设分组缺失的中英文翻译 - #78
Open
yaojin3616 wants to merge 1 commit into
Open
Conversation
The agent preset selector uses t('builtInGroup') and t('customGroup') for
the Built-in and Custom group labels, but these keys were not defined in
either the English or Chinese translation dictionaries. This caused the
raw key names to appear in the UI instead of translated labels.
Fixes #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复问题 #11:中文环境下,Agent Preset 选择器中的分组标签未翻译,显示为原始 key 名。
根本原因
补丁中新增了预设分组功能(Recent / Built-in / Custom),
builtInGroup和customGroup两个翻译 key 在代码中通过t()调用,但未在 en / zh 字典中定义,导致 UI 显示原始 key 字符串而非翻译文案。修复内容
builtInGroup: "Built-in"customGroup: "Custom"builtInGroup: "内置"customGroup: "自定义"Fixes #11