From 13037c5046bebd827c233ae8fad50bc30ae46147 Mon Sep 17 00:00:00 2001 From: xxiaoxiong <2482929840@qq.com> Date: Fri, 17 Jul 2026 20:06:09 +0800 Subject: [PATCH] fix(i18n): localize BYOK provider titles to English MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five BYOK provider titles in apps/web/src/state/config.ts were hardcoded in Chinese while the rest of the provider list used English-facing names: qwen 千问 -> Qwen volcengine 火山引擎 -> Volcengine Ark qianfan 百度千帆 -> Baidu Qianfan mimo 小米 MiMo -> Xiaomi MiMo zhipu 智谱 -> Zhipu AI These were rendered into the Settings > Execution mode > BYOK provider chip list verbatim, producing a mixed-language list when the UI was set to English (issue #5693). The providerLabel for each was already in English; only the user-facing title was inconsistent. The new titles mirror the providerLabel phrasing where the existing providerLabel read naturally as a standalone name (Qwen, Volcengine Ark, Baidu Qianfan, Zhipu AI) and use a friendly "Xiaomi MiMo" for mimo where the providerLabel carried extra "OpenAI" suffix not appropriate for a chip title. No i18n catalog entries needed — these were never translated, the title field is the display string. Fixes #5693 --- apps/web/src/state/config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/src/state/config.ts b/apps/web/src/state/config.ts index 81186411d0..f96b8e653e 100644 --- a/apps/web/src/state/config.ts +++ b/apps/web/src/state/config.ts @@ -509,14 +509,14 @@ const BYOK_PROVIDER_PRESET_SPECS = [ { id: 'xai', title: 'xAI', providerLabel: 'xAI' }, { id: 'together', title: 'Together AI', providerLabel: 'Together AI' }, { id: 'huggingface', title: 'Hugging Face', providerLabel: 'Hugging Face' }, - { id: 'qwen', title: '千问', providerLabel: 'Qwen' }, - { id: 'volcengine', title: '火山引擎', providerLabel: 'Volcengine Ark' }, - { id: 'qianfan', title: '百度千帆', providerLabel: 'Baidu Qianfan' }, + { id: 'qwen', title: 'Qwen', providerLabel: 'Qwen' }, + { id: 'volcengine', title: 'Volcengine Ark', providerLabel: 'Volcengine Ark' }, + { id: 'qianfan', title: 'Baidu Qianfan', providerLabel: 'Baidu Qianfan' }, { id: 'vllm', title: 'vLLM', providerLabel: 'vLLM' }, - { id: 'mimo', title: '小米 MiMo', providerLabel: 'MiMo (Xiaomi) — OpenAI' }, + { id: 'mimo', title: 'Xiaomi MiMo', providerLabel: 'MiMo (Xiaomi) — OpenAI' }, { id: 'minimax', title: 'MiniMax', providerLabel: 'MiniMax — Anthropic (CN)' }, { id: 'moonshot', title: 'Moonshot', providerLabel: 'Moonshot' }, - { id: 'zhipu', title: '智谱', providerLabel: 'Zhipu' }, + { id: 'zhipu', title: 'Zhipu AI', providerLabel: 'Zhipu' }, ] as const; export const BYOK_PROVIDER_PRESETS: ReadonlyArray =