feat(i18n): add multilingual support for documentation with Chinese and English content

This commit is contained in:
HouYunFei
2026-08-05 14:41:42 +08:00
parent 5a7116f924
commit ec82958f7c
82 changed files with 2400 additions and 1473 deletions
@@ -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);