Skip to content

fix: 补全预设分组缺失的中英文翻译 - #78

Open
yaojin3616 wants to merge 1 commit into
mainfrom
fix/agent-preset-missing-zh-translations
Open

fix: 补全预设分组缺失的中英文翻译#78
yaojin3616 wants to merge 1 commit into
mainfrom
fix/agent-preset-missing-zh-translations

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

修复问题 #11:中文环境下,Agent Preset 选择器中的分组标签未翻译,显示为原始 key 名。

根本原因
补丁中新增了预设分组功能(Recent / Built-in / Custom),builtInGroupcustomGroup 两个翻译 key 在代码中通过 t() 调用,但未在 en / zh 字典中定义,导致 UI 显示原始 key 字符串而非翻译文案。

修复内容

  • 在英文字典中添加:
    • builtInGroup: "Built-in"
    • customGroup: "Custom"
  • 在中文字典中添加:
    • builtInGroup: "内置"
    • customGroup: "自定义"

Fixes #11

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
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.

当切换中文环境下,未翻译部分配置项文案

1 participant