fix(i18n): use i18n key for 'Parameters' label in tool call expansion

The 'Paramètres' label in ToolCall.tsx was hardcoded in French instead of
using the i18n system. Added tool.parameters key to both EN and FR locales.
This commit is contained in:
Nicolas Varrot
2026-02-11 18:56:11 +00:00
parent 91c22a10af
commit 195ad621f7
2 changed files with 3 additions and 1 deletions

View File

@@ -207,7 +207,7 @@ export function ToolCall({ name, input, result }: { name: string; input?: any; r
<div className={`mt-2 rounded-2xl border ${c.expandBorder} ${c.expandBg} p-3 space-y-2`}>
{inputStr && (
<div>
<div className={`text-[11px] ${c.text} opacity-70 mb-1 font-medium`}>Paramètres</div>
<div className={`text-[11px] ${c.text} opacity-70 mb-1 font-medium`}>{t('tool.parameters')}</div>
<HighlightedPre
text={inputStr}
className="text-xs bg-[#1a1a20]/60 border border-white/5 p-2.5 rounded-xl overflow-x-auto text-zinc-300 font-mono"

View File

@@ -47,6 +47,7 @@ const en = {
'thinking.label': 'Thinking',
// Tool call
'tool.parameters': 'Parameters',
'tool.result': 'Result',
// Connection banner
@@ -91,6 +92,7 @@ const fr: Record<keyof typeof en, string> = {
'thinking.label': 'Réflexion',
'tool.parameters': 'Paramètres',
'tool.result': 'Résultat',
'connection.reconnecting': 'Connexion perdue — reconnexion…',