From 906877cbe6400bd43604355c95764ae136b71d21 Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Thu, 29 Jan 2026 16:29:44 +0800
Subject: [PATCH] feat(i18n): add localized message for tool usage in chat
---
.../chat/message_list_comps/MessagePartsRenderer.vue | 2 +-
dashboard/src/i18n/locales/en-US/features/chat.json | 3 ++-
dashboard/src/i18n/locales/zh-CN/features/chat.json | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dashboard/src/components/chat/message_list_comps/MessagePartsRenderer.vue b/dashboard/src/components/chat/message_list_comps/MessagePartsRenderer.vue
index 911f3740..68d106a1 100644
--- a/dashboard/src/components/chat/message_list_comps/MessagePartsRenderer.vue
+++ b/dashboard/src/components/chat/message_list_comps/MessagePartsRenderer.vue
@@ -14,7 +14,7 @@
mdi-wrench
- 已使用 {{ toolCall.name }} 工具
+ {{ tm('actions.toolCallUsed', { name: toolCall.name }) }}
{{ toolCall.finished_ts ? formatDuration(toolCall.finished_ts -
toolCall.ts) : getElapsedTime(toolCall.ts) }}
diff --git a/dashboard/src/i18n/locales/en-US/features/chat.json b/dashboard/src/i18n/locales/en-US/features/chat.json
index 38591406..5a54aee4 100644
--- a/dashboard/src/i18n/locales/en-US/features/chat.json
+++ b/dashboard/src/i18n/locales/en-US/features/chat.json
@@ -49,6 +49,7 @@
"reply": "Reply",
"providerConfig": "AI Configuration",
"toolsUsed": "Tool Used",
+ "toolCallUsed": "Used {name} tool",
"pythonCodeAnalysis": "Python Code Analysis Used"
},
"ipython": {
@@ -133,4 +134,4 @@
"sendMessageFailed": "Failed to send message, please try again",
"createSessionFailed": "Failed to create session, please refresh the page"
}
-}
\ No newline at end of file
+}
diff --git a/dashboard/src/i18n/locales/zh-CN/features/chat.json b/dashboard/src/i18n/locales/zh-CN/features/chat.json
index 086e335a..b97d0838 100644
--- a/dashboard/src/i18n/locales/zh-CN/features/chat.json
+++ b/dashboard/src/i18n/locales/zh-CN/features/chat.json
@@ -49,6 +49,7 @@
"reply": "引用回复",
"providerConfig": "AI 配置",
"toolsUsed": "已使用工具",
+ "toolCallUsed": "已使用 {name} 工具",
"pythonCodeAnalysis": "已使用 Python 代码分析"
},
"ipython": {
@@ -135,4 +136,4 @@
"sendMessageFailed": "发送消息失败,请重试",
"createSessionFailed": "创建会话失败,请刷新页面重试"
}
-}
\ No newline at end of file
+}