mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
fix(i18n): localize BYOK provider titles to English
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
This commit is contained in:
@@ -509,14 +509,14 @@ const BYOK_PROVIDER_PRESET_SPECS = [
|
|||||||
{ id: 'xai', title: 'xAI', providerLabel: 'xAI' },
|
{ id: 'xai', title: 'xAI', providerLabel: 'xAI' },
|
||||||
{ id: 'together', title: 'Together AI', providerLabel: 'Together AI' },
|
{ id: 'together', title: 'Together AI', providerLabel: 'Together AI' },
|
||||||
{ id: 'huggingface', title: 'Hugging Face', providerLabel: 'Hugging Face' },
|
{ id: 'huggingface', title: 'Hugging Face', providerLabel: 'Hugging Face' },
|
||||||
{ id: 'qwen', title: '千问', providerLabel: 'Qwen' },
|
{ id: 'qwen', title: 'Qwen', providerLabel: 'Qwen' },
|
||||||
{ id: 'volcengine', title: '火山引擎', providerLabel: 'Volcengine Ark' },
|
{ id: 'volcengine', title: 'Volcengine Ark', providerLabel: 'Volcengine Ark' },
|
||||||
{ id: 'qianfan', title: '百度千帆', providerLabel: 'Baidu Qianfan' },
|
{ id: 'qianfan', title: 'Baidu Qianfan', providerLabel: 'Baidu Qianfan' },
|
||||||
{ id: 'vllm', title: 'vLLM', providerLabel: 'vLLM' },
|
{ 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: 'minimax', title: 'MiniMax', providerLabel: 'MiniMax — Anthropic (CN)' },
|
||||||
{ id: 'moonshot', title: 'Moonshot', providerLabel: 'Moonshot' },
|
{ id: 'moonshot', title: 'Moonshot', providerLabel: 'Moonshot' },
|
||||||
{ id: 'zhipu', title: '智谱', providerLabel: 'Zhipu' },
|
{ id: 'zhipu', title: 'Zhipu AI', providerLabel: 'Zhipu' },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export const BYOK_PROVIDER_PRESETS: ReadonlyArray<ByokProviderPresetConfig> =
|
export const BYOK_PROVIDER_PRESETS: ReadonlyArray<ByokProviderPresetConfig> =
|
||||||
|
|||||||
Reference in New Issue
Block a user