From ba7d5f53e5a6bc251be9d7702bbded931fd639ef Mon Sep 17 00:00:00 2001 From: icarus Date: Sat, 27 Sep 2025 17:36:25 +0800 Subject: [PATCH] feat(i18n): add anthropic api host translations and permission mode fields Add new translation fields for Anthropic API host configuration and permission mode settings in both zh-cn and en-us locales --- src/renderer/src/i18n/locales/en-us.json | 15 +++++++++------ src/renderer/src/i18n/locales/zh-cn.json | 15 +++++++++------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/renderer/src/i18n/locales/en-us.json b/src/renderer/src/i18n/locales/en-us.json index e21a99c76d..904631e54e 100644 --- a/src/renderer/src/i18n/locales/en-us.json +++ b/src/renderer/src/i18n/locales/en-us.json @@ -129,11 +129,14 @@ "description": "Read-only tools are pre-approved; everything else still needs permission.", "title": "Default (ask before continuing)" }, + "helper": "Choose how the agent handles tool approvals.", + "placeholder": "Select permission mode", "plan": { "behavior": "Read-only defaults are pre-approved while execution remains disabled.", "description": "Shares the default read-only tool set but presents a plan before execution.", "title": "Planning mode" - } + }, + "title": "Permission mode" }, "preapproved": { "autoBadge": "Added by mode", @@ -3948,6 +3951,10 @@ "start_auth": "Start authorization", "submit_code": "Complete login" }, + "anthropic_api_host": "Anthropic API Host", + "anthropic_api_host_preview": "Anthropic preview: {{url}}", + "anthropic_api_host_tip": "Only configure this when your provider exposes an Anthropic-compatible endpoint. Ending with / ignores v1, ending with # forces use of input address.", + "anthropic_api_host_tooltip": "Use only when the provider offers a Claude-compatible base URL.", "api": { "key": { "check": { @@ -3995,12 +4002,8 @@ } }, "api_host": "API Host", - "api_host_tooltip": "Override only when your provider requires a custom OpenAI-compatible endpoint.", "api_host_preview": "Preview: {{url}}", - "anthropic_api_host": "Anthropic API Host", - "anthropic_api_host_tooltip": "Use only when the provider offers a Claude-compatible base URL.", - "anthropic_api_host_preview": "Anthropic preview: {{url}}", - "anthropic_api_host_tip": "Only configure this when your provider exposes an Anthropic-compatible endpoint. Ending with / ignores v1, ending with # forces use of input address.", + "api_host_tooltip": "Override only when your provider requires a custom OpenAI-compatible endpoint.", "api_key": { "label": "API Key", "tip": "Multiple keys separated by commas or spaces" diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index 2c41e60f12..fec8b30733 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -129,11 +129,14 @@ "description": "只读工具会自动预先授权,其它操作仍需权限。", "title": "默认(继续前询问)" }, + "helper": "指定智能体如何处理工具使用授权", + "placeholder": "选择权限模式", "plan": { "behavior": "默认的只读工具会自动预先授权,但执行仍被禁用。", "description": "继承默认的只读工具集,并会在执行前先呈现计划。", "title": "规划模式" - } + }, + "title": "权限模式" }, "preapproved": { "autoBadge": "模式自动添加", @@ -3948,6 +3951,10 @@ "start_auth": "开始授权", "submit_code": "完成登录" }, + "anthropic_api_host": "Anthropic API 地址", + "anthropic_api_host_preview": "Anthropic 预览:{{url}}", + "anthropic_api_host_tip": "仅在服务商提供兼容 Anthropic 的地址时填写。以 / 结尾会忽略自动追加的 v1,以 # 结尾则强制使用原始地址。", + "anthropic_api_host_tooltip": "仅当服务商提供 Claude 兼容的基础地址时填写。", "api": { "key": { "check": { @@ -3995,12 +4002,8 @@ } }, "api_host": "API 地址", - "api_host_tooltip": "仅在服务商需要自定义的 OpenAI 兼容地址时覆盖。", "api_host_preview": "预览:{{url}}", - "anthropic_api_host": "Anthropic API 地址", - "anthropic_api_host_tooltip": "仅当服务商提供 Claude 兼容的基础地址时填写。", - "anthropic_api_host_preview": "Anthropic 预览:{{url}}", - "anthropic_api_host_tip": "仅在服务商提供兼容 Anthropic 的地址时填写。以 / 结尾会忽略自动追加的 v1,以 # 结尾则强制使用原始地址。", + "api_host_tooltip": "仅在服务商需要自定义的 OpenAI 兼容地址时覆盖。", "api_key": { "label": "API 密钥", "tip": "多个密钥使用逗号或空格分隔"