From 71d3128db7c0d03626e0a20a153956044d00af3e Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 15 Jun 2026 20:55:21 +0800 Subject: [PATCH] fix(i18n): localize Codex managed-account none option label ProviderForm passed a hardcoded Chinese string as codexOauthNoneOptionLabel, so en/ja/zh-TW users saw Chinese text in the Codex account selector's "none" option. Add codexOauth.noneOptionLabel to all four locales and resolve it via t(). --- src/components/providers/forms/ProviderForm.tsx | 2 +- src/i18n/locales/en.json | 1 + src/i18n/locales/ja.json | 1 + src/i18n/locales/zh-TW.json | 1 + src/i18n/locales/zh.json | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index 52fefae33..00e649918 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -2100,7 +2100,7 @@ function ProviderFormFull({ selectedCodexAccountId={selectedCodexAccountId} onCodexAccountSelect={setSelectedCodexAccountId} onManageAuthAccounts={onManageAuthAccounts} - codexOauthNoneOptionLabel="暂不绑定托管账号,使用浏览器登录" + codexOauthNoneOptionLabel={t("codexOauth.noneOptionLabel")} shouldShowSpeedTest={shouldShowSpeedTest} codexBaseUrl={codexBaseUrl} onBaseUrlChange={handleCodexBaseUrlChange} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index aaa45b0c3..319ff8dd6 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -1170,6 +1170,7 @@ "selectAccount": "Select account", "selectAccountPlaceholder": "Choose a ChatGPT account", "useDefaultAccount": "Use default account", + "noneOptionLabel": "Don't bind a managed account, use browser login", "loggedInAccounts": "Logged in accounts", "defaultAccount": "Default", "selected": "Selected", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index f94fe3701..efbb2042b 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -1170,6 +1170,7 @@ "selectAccount": "アカウントを選択", "selectAccountPlaceholder": "ChatGPT アカウントを選択", "useDefaultAccount": "デフォルトアカウントを使用", + "noneOptionLabel": "管理アカウントをバインドせず、ブラウザでログイン", "loggedInAccounts": "ログイン済みアカウント", "defaultAccount": "デフォルト", "selected": "選択中", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index b8769d313..d70abf8e1 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -1142,6 +1142,7 @@ "selectAccount": "選擇帳號", "selectAccountPlaceholder": "選擇一個 ChatGPT 帳號", "useDefaultAccount": "使用預設帳號", + "noneOptionLabel": "暫不綁定託管帳號,使用瀏覽器登入", "loggedInAccounts": "已登入帳號", "defaultAccount": "預設", "selected": "已選取", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index ea5562ce6..41c3e355a 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -1170,6 +1170,7 @@ "selectAccount": "选择账号", "selectAccountPlaceholder": "选择一个 ChatGPT 账号", "useDefaultAccount": "使用默认账号", + "noneOptionLabel": "暂不绑定托管账号,使用浏览器登录", "loggedInAccounts": "已登录账号", "defaultAccount": "默认", "selected": "已选中",