From 8d3a4822db9fada94568d46a24d2164214c46065 Mon Sep 17 00:00:00 2001 From: LTbinglingfeng Date: Tue, 26 May 2026 00:27:33 +0800 Subject: [PATCH] fix(auth-files): keep codex websocket labels translated --- .../components/AuthFilesPrefixProxyEditorModal.tsx | 6 +++--- src/i18n/locales/en.json | 2 ++ src/i18n/locales/ru.json | 2 ++ src/i18n/locales/zh-CN.json | 2 ++ src/i18n/locales/zh-TW.json | 2 ++ 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx index b9aed268..5d9af098 100644 --- a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx +++ b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx @@ -144,14 +144,14 @@ export function AuthFilesPrefixProxyEditorModal(props: AuthFilesPrefixProxyEdito /> {editor.providerKey === 'codex' && (
- + onChange('websockets', value)} disabled={disableControls || editor.saving || !editor.json} - ariaLabel={t('ai_providers.codex_websockets_label')} + ariaLabel={t('auth_files.codex_websockets_label')} /> -
{t('ai_providers.codex_websockets_hint')}
+
{t('auth_files.codex_websockets_hint')}
)}
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index b0c1cba0..bb0df03b 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -331,6 +331,8 @@ "priority_label": "Priority (priority)", "priority_placeholder": "e.g. 10 or -1", "priority_hint": "Integers only. Invalid values are ignored. Larger value means higher priority.", + "codex_websockets_label": "WebSockets (websockets)", + "codex_websockets_hint": "Enable Responses API websocket transport for this Codex credential.", "excluded_models_label": "Excluded models (excluded_models)", "excluded_models_placeholder": "Comma or newline separated, e.g. model-a, gpt-5-*, *-preview", "excluded_models_hint": "Saved as an array and normalized by trim/lowercase/dedup/sort.", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index a53a3b06..2fcf340f 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -331,6 +331,8 @@ "priority_label": "Приоритет (priority)", "priority_placeholder": "например: 10 или -1", "priority_hint": "Только целые числа. Некорректные значения игнорируются. Чем больше число, тем выше приоритет.", + "codex_websockets_label": "WebSockets (websockets)", + "codex_websockets_hint": "Включает websocket-транспорт Responses API для этих учётных данных Codex.", "excluded_models_label": "Исключённые модели (excluded_models)", "excluded_models_placeholder": "Через запятую или с новой строки, например: model-a, gpt-5-*, *-preview", "excluded_models_hint": "Сохраняется как массив; значения trim/нижний регистр/без дублей/с сортировкой.", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index ff909749..56a1331d 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -331,6 +331,8 @@ "priority_label": "优先级(priority)", "priority_placeholder": "例如: 10 或 -1", "priority_hint": "仅支持整数;非法值会被忽略。数值越大优先级越高。", + "codex_websockets_label": "WebSockets(websockets)", + "codex_websockets_hint": "为该 Codex 凭证开启 Responses API 的 websocket 传输。", "excluded_models_label": "排除模型(excluded_models)", "excluded_models_placeholder": "用逗号或换行分隔,例如: model-a, gpt-5-*, *-preview", "excluded_models_hint": "保存为数组;会自动 trim、小写、去重并排序。", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index e17e4a6e..dfcc07b7 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -331,6 +331,8 @@ "priority_label": "優先順序(priority)", "priority_placeholder": "例如: 10 或 -1", "priority_hint": "僅支援整數;無效值會被忽略。數值越大優先順序越高。", + "codex_websockets_label": "WebSockets(websockets)", + "codex_websockets_hint": "為該 Codex 憑證開啟 Responses API 的 websocket 傳輸。", "excluded_models_label": "排除模型(excluded_models)", "excluded_models_placeholder": "用逗號或換行分隔,例如: model-a, gpt-5-*, *-preview", "excluded_models_hint": "儲存為陣列;會自動 trim、小寫、去重並排序。",