mirror of
https://github.com/basketikun/infinite-canvas.git
synced 2026-08-06 09:24:24 +08:00
feat(i18n): add multilingual support for documentation with Chinese and English content
This commit is contained in:
@@ -84,7 +84,7 @@ export function formatAgentActivity(event: AgentEventPayload): Omit<AgentChatIte
|
||||
if (item.type === "plan") {
|
||||
const text = stringText(item.text);
|
||||
if (completed && !text && !item.error?.message) return null;
|
||||
return { role: "tool", title: tr("plan"), text: item.error?.message || text || activityPlaceholder(item.type), detail: { kind: "plan", status: itemStatus, ...(item.error?.message ? { output: item.error.message } : {}) };
|
||||
return { role: "tool", title: tr("plan"), text: item.error?.message || text || activityPlaceholder(item.type), detail: { kind: "plan", status: itemStatus, ...(item.error?.message ? { output: item.error.message } : {}) } };
|
||||
}
|
||||
if (item.type === "command_execution") {
|
||||
const command = stringText(item.command);
|
||||
|
||||
Reference in New Issue
Block a user