From b84bbfc43f8eb7322a1f6b6cb756fdfd4e2fddf6 Mon Sep 17 00:00:00 2001 From: chenhg5 Date: Thu, 12 Mar 2026 08:06:06 +0800 Subject: [PATCH] feat(i18n): add note text for permission card generated by llmgit Co-Authored-By: Claude --- core/engine.go | 1 + core/i18n.go | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/core/engine.go b/core/engine.go index eccefff..606c165 100644 --- a/core/engine.go +++ b/core/engine.go @@ -3260,6 +3260,7 @@ func (e *Engine) sendPermissionPrompt(p Platform, replyCtx any, prompt, toolName Markdown(body). ButtonsEqual(allowBtn, denyBtn). Buttons(allowAllBtn). + Note(e.i18n.T(MsgPermCardNote)). Build() e.sendWithCard(p, replyCtx, card) return diff --git a/core/i18n.go b/core/i18n.go index 50c0636..c992b88 100644 --- a/core/i18n.go +++ b/core/i18n.go @@ -288,8 +288,9 @@ const ( MsgPermBtnAllow MsgKey = "perm_btn_allow" MsgPermBtnDeny MsgKey = "perm_btn_deny" MsgPermBtnAllowAll MsgKey = "perm_btn_allow_all" - MsgPermCardTitle MsgKey = "perm_card_title" - MsgPermCardBody MsgKey = "perm_card_body" + MsgPermCardTitle MsgKey = "perm_card_title" + MsgPermCardBody MsgKey = "perm_card_body" + MsgPermCardNote MsgKey = "perm_card_note" MsgCommandsTitle MsgKey = "commands_title" MsgCommandsEmpty MsgKey = "commands_empty" @@ -1812,6 +1813,13 @@ var messages = map[MsgKey]map[Language]string{ LangJapanese: "エージェントが **%s** を使用しようとしています:\n\n```\n%s\n```", LangSpanish: "El agente quiere usar **%s**:\n\n```\n%s\n```", }, + MsgPermCardNote: { + LangEnglish: "If buttons are unresponsive, reply: allow / deny / allow all", + LangChinese: "如果按钮无响应,请直接回复:允许 / 拒绝 / 允许所有", + LangTraditionalChinese: "若按鈕無回應,請直接回覆:允許 / 拒絕 / 允許所有", + LangJapanese: "ボタンが反応しない場合は直接返信: allow / deny / allow all", + LangSpanish: "Si los botones no responden, responda: allow / deny / allow all", + }, MsgCommandsTitle: { LangEnglish: "🔧 **Custom Commands** (%d)\n\n", LangChinese: "🔧 **自定义命令** (%d)\n\n",