Skip to content

Commit fe883e3

Browse files
committed
use chat.json
1 parent 599e1c3 commit fe883e3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

webview-ui/src/components/chat/ContextCondenseRow.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens, summary
1515
onClick={() => setIsExpanded(!isExpanded)}>
1616
<div className="flex items-center gap-2 flex-grow">
1717
<span className="codicon codicon-compress text-blue-400" />
18-
<span className="font-bold text-vscode-foreground">
19-
{t("chat:contextCondense.title", "Context Condensed")}
20-
</span>
18+
<span className="font-bold text-vscode-foreground">{t("chat:contextCondense.title")}</span>
2119
<span className="text-vscode-descriptionForeground text-sm">
22-
{prevContextTokens.toLocaleString()}{newContextTokens.toLocaleString()} tokens
20+
{prevContextTokens.toLocaleString()}{newContextTokens.toLocaleString()} {t("tokens")}
2321
</span>
2422
<VSCodeBadge style={{ opacity: cost > 0 ? 1 : 0 }}>${cost.toFixed(2)}</VSCodeBadge>
2523
</div>
@@ -28,7 +26,7 @@ const ContextCondenseRow = ({ cost, prevContextTokens, newContextTokens, summary
2826

2927
{isExpanded && (
3028
<div className="mt-2 ml-6 p-3 bg-vscode-editor-background rounded text-vscode-foreground text-sm">
31-
<h3 className="font-bold mb-2">Conversation Summary</h3>
29+
<h3 className="font-bold mb-2">{t("chat:contextCondense.conversationSummary")}</h3>
3230
{summary}
3331
</div>
3432
)}

webview-ui/src/i18n/locales/en/chat.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
},
130130
"current": "Current"
131131
},
132+
"contextCondense": {
133+
"title": "Context Condensed",
134+
"conversationSummary": "Conversation Summary",
135+
"tokens": "tokens"
136+
},
132137
"instructions": {
133138
"wantsToFetch": "Roo wants to fetch detailed instructions to assist with the current task"
134139
},

0 commit comments

Comments
 (0)