From 357d32c17ea221a98ff35a4448292a41b8f111e7 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 20 Feb 2026 11:11:10 +0800 Subject: [PATCH] fix(i18n): clarify OpenClaw default model button labels Rename "Enable/Default" to "Set Default/Current Default" across zh/en/ja locales and widen button to fit longer text. --- src/components/providers/ProviderActions.tsx | 6 +++--- src/i18n/locales/en.json | 4 ++-- src/i18n/locales/ja.json | 4 ++-- src/i18n/locales/zh.json | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/providers/ProviderActions.tsx b/src/components/providers/ProviderActions.tsx index d879ea93f..1394fa69f 100644 --- a/src/components/providers/ProviderActions.tsx +++ b/src/components/providers/ProviderActions.tsx @@ -207,7 +207,7 @@ export function ProviderActions({ onClick={isDefaultModel ? undefined : onSetAsDefault} disabled={isDefaultModel} className={cn( - "w-[4.5rem] px-2.5", + "w-fit px-2.5", isDefaultModel ? "bg-gray-200 text-muted-foreground dark:bg-gray-700 opacity-60 cursor-not-allowed" : "bg-blue-500 hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-700", @@ -215,8 +215,8 @@ export function ProviderActions({ > {isDefaultModel - ? t("provider.isDefault", { defaultValue: "默认" }) - : t("provider.setAsDefault", { defaultValue: "启用" })} + ? t("provider.isDefault", { defaultValue: "当前默认" }) + : t("provider.setAsDefault", { defaultValue: "设为默认" })} )} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 083211c77..bba813d43 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -91,8 +91,8 @@ "addOpenCodeProvider": "Add OpenCode Provider", "addToConfig": "Add", "removeFromConfig": "Remove", - "setAsDefault": "Enable", - "isDefault": "Default", + "setAsDefault": "Set Default", + "isDefault": "Current Default", "inConfig": "Added", "addProviderHint": "Fill in the information to quickly switch providers in the list.", "editClaudeProvider": "Edit Claude Code Provider", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 324f71203..d417863f1 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -91,8 +91,8 @@ "addOpenCodeProvider": "OpenCode プロバイダーを追加", "addToConfig": "追加", "removeFromConfig": "削除", - "setAsDefault": "有効化", - "isDefault": "デフォルト", + "setAsDefault": "デフォルトに設定", + "isDefault": "現在のデフォルト", "inConfig": "追加済み", "addProviderHint": "一覧にすばやく切り替えられるよう、ここに情報を入力してください。", "editClaudeProvider": "Claude Code プロバイダーを編集", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 6cafa121b..5c64357d9 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -91,8 +91,8 @@ "addOpenCodeProvider": "添加 OpenCode 供应商", "addToConfig": "添加", "removeFromConfig": "移除", - "setAsDefault": "启用", - "isDefault": "默认", + "setAsDefault": "设为默认", + "isDefault": "当前默认", "inConfig": "已添加", "addProviderHint": "填写信息后即可在列表中快速切换供应商。", "editClaudeProvider": "编辑 Claude Code 供应商",