feat(i18n): add note text for permission card

generated by llmgit

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
chenhg5andClaude committed 2026-03-12 08:06:06 +08:00
1 parent 670b57021b
commit b84bbfc43f
2 files changed
+11 -2

No files matched your search

+1
View File
@@ -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
+10 -2
View File
@@ -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",