fix(i18n): deduplicate category labels by reusing providerForm keys

- Change ProviderForm to use providerForm.category* instead of providerPreset.category*
- Remove duplicate category keys from providerPreset namespace in both zh.json and en.json
- Fix naming inconsistency: use categoryAggregation (not categoryAggregator)
- Fixes issue where English UI would show Chinese defaultValue fallbacks

This ensures single source of truth for category labels and improves maintainability.
This commit is contained in:
Jason
2025-11-14 08:31:09 +08:00
parent 21fd7cc9fd
commit 0ea434a485
3 changed files with 93 additions and 8 deletions

View File

@@ -343,6 +343,16 @@
"configPreview": "配置预览",
"applyConfig": "应用配置"
},
"geminiConfig": {
"envFile": "环境变量 (.env)",
"envFileHint": "使用 .env 格式配置 Gemini 环境变量",
"configJson": "配置文件 (config.json)",
"configJsonHint": "使用 JSON 格式配置 Gemini 扩展参数(可选)",
"writeCommonConfig": "写入通用配置",
"editCommonConfig": "编辑通用配置",
"editCommonConfigTitle": "编辑 Gemini 通用配置片段",
"commonConfigHint": "通用配置片段将合并到所有启用它的 Gemini 供应商配置中"
},
"providerPreset": {
"label": "预设供应商",
"custom": "自定义配置",