From 21341304b83a5a57aee2d1b179b0702d59cd558c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 7 Dec 2025 15:15:55 -0600 Subject: [PATCH] Improve tool calling i18n --- src/components/Shakespeare/ChatPane.tsx | 8 ++++---- src/locales/en.json | 4 ++-- src/locales/ha.json | 4 ++-- src/locales/ig.json | 4 ++-- src/locales/pt.json | 4 ++-- src/locales/yo.json | 4 ++-- src/locales/zh.json | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index f2cebe81..c35e0f58 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -578,13 +578,13 @@ export const ChatPane = forwardRef(({ isCurrentlyLoading={isLoading} /> )} - {/* "Calling ..." if streaming tool call is in progress */} + {/* "Running ..." if streaming tool call is in progress */} {(streamingToolCall?.type === 'function') ? (
- {t('calling')} {streamingToolCall.function?.name || 'tool'}... + {t('runningTool', { tool: streamingToolCall.function.name })}
@@ -609,14 +609,14 @@ export const ChatPane = forwardRef(({ const lastMessage = messages[messages.length - 1] as AIMessage | undefined; const lastToolCall = lastMessage?.role === 'assistant' ? lastMessage?.tool_calls?.[0] : undefined; - // "Running ..." if last tool call is still executing + // "Waiting for ..." if last tool call is still executing if (lastToolCall?.type === 'function') { return (
- {t('running')} {lastToolCall.function.name}... + {t('waitingForTool', { tool: lastToolCall.function.name })}
diff --git a/src/locales/en.json b/src/locales/en.json index 18c84244..24c01c39 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -131,8 +131,8 @@ "selectModelFirst": "Please select a model to start chatting...", "sendMessage": "Send message", "stopGeneration": "Stop generation", - "calling": "Calling", - "running": "Running", + "runningTool": "Running {{tool}}...", + "waitingForTool": "Waiting for {{tool}}...", "chat": "Chat", "preview": "Preview", "code": "Code", diff --git a/src/locales/ha.json b/src/locales/ha.json index fb568196..3ddca2ae 100644 --- a/src/locales/ha.json +++ b/src/locales/ha.json @@ -124,8 +124,8 @@ "selectModelFirst": "Da fatan za a zaɓi samfuri don farawa hira...", "sendMessage": "Aika saƙo", "stopGeneration": "Tsayar da samarwa", - "calling": "Ana kira", - "running": "Ana gudana", + "runningTool": "Ana gudana {{tool}}...", + "waitingForTool": "Ana jiran {{tool}}...", "chat": "Hira", "preview": "Duba", "code": "Lambar", diff --git a/src/locales/ig.json b/src/locales/ig.json index f436ec94..8e9ec297 100644 --- a/src/locales/ig.json +++ b/src/locales/ig.json @@ -124,8 +124,8 @@ "selectModelFirst": "Biko họrọ ụdịdị iji malite ikwu okwu...", "sendMessage": "Ziga ozi", "stopGeneration": "Kwụsị mmepụta", - "calling": "Na-akpọ", - "running": "Na-agba ọsọ", + "runningTool": "Na-agba ọsọ {{tool}}...", + "waitingForTool": "Na-eche {{tool}}...", "chat": "Nkata", "preview": "Nlele", "code": "Koodu", diff --git a/src/locales/pt.json b/src/locales/pt.json index acebd59e..14422c45 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -126,8 +126,8 @@ "selectModelFirst": "Selecione um modelo para começar a conversar...", "sendMessage": "Enviar mensagem", "stopGeneration": "Parar geração", - "calling": "Chamando", - "running": "Executando", + "runningTool": "Executando {{tool}}...", + "waitingForTool": "Aguardando {{tool}}...", "chat": "Chat", "preview": "Visualização", "code": "Código", diff --git a/src/locales/yo.json b/src/locales/yo.json index 4484c1e2..93692976 100644 --- a/src/locales/yo.json +++ b/src/locales/yo.json @@ -124,8 +124,8 @@ "selectModelFirst": "Jọwọ yan awoṣe lati bẹrẹ ibaraẹnisọrọ...", "sendMessage": "Fi ifiranṣẹ ranṣẹ", "stopGeneration": "Duro ṣiṣẹda", - "calling": "N pe", - "running": "N ṣiṣẹ", + "runningTool": "N ṣiṣẹ {{tool}}...", + "waitingForTool": "N duro de {{tool}}...", "chat": "Ibaraẹnisọrọ", "preview": "Aṣaju wiwo", "code": "Koodu", diff --git a/src/locales/zh.json b/src/locales/zh.json index 365c3110..bed6ed89 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -126,8 +126,8 @@ "selectModelFirst": "请先选择一个模型开始聊天...", "sendMessage": "发送消息", "stopGeneration": "停止生成", - "calling": "调用中", - "running": "运行中", + "runningTool": "运行{{tool}}中...", + "waitingForTool": "等待{{tool}}...", "chat": "聊天", "preview": "预览", "code": "代码",