Skip to content

CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.

fix(i18n): the canvas is 图表绘制, not 图标绘制

codingFeng10122fa6b609e5d
diff --git a/client/pages/portal/PortalPage.tsx b/client/pages/portal/PortalPage.tsx
index f17f208..f3716c2 100644
--- a/client/pages/portal/PortalPage.tsx
+++ b/client/pages/portal/PortalPage.tsx
@@ -97,9 +97,9 @@ const canvasIcons: Record<PortalWorkspace, typeof Blocks> = {
const detailConfigs: Record<PortalWorkspace, DetailConfig> = {
flow: {
- title: "\u56fe\u6807\u753b\u5e03",
- subtitle: "\u4e00\u53e5\u9700\u6c42\uff0c\u5feb\u901f\u751f\u6210\u7ed3\u6784\u5316\u56fe\u6807",
- intro: "\u56fe\u6807\u753b\u5e03\u8ba9\u4f60\u7528\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u6d41\u7a0b\uff0c\u81ea\u52a8\u751f\u6210\u53ef\u7f16\u8f91\u7684\u56fe\u6807\u3002\u652f\u6301\u8282\u70b9\u4e0e\u8fde\u7ebf\u7f16\u8f91\u3001\u5c40\u90e8\u4fee\u6539\uff0c\u5e76\u53ef\u5bfc\u51fa draw.io XML\u3002",
+ title: "\u56fe\u8868\u753b\u5e03",
+ subtitle: "\u4e00\u53e5\u9700\u6c42\uff0c\u5feb\u901f\u751f\u6210\u7ed3\u6784\u5316\u56fe\u8868",
+ intro: "\u56fe\u8868\u753b\u5e03\u8ba9\u4f60\u7528\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u6d41\u7a0b\uff0c\u81ea\u52a8\u751f\u6210\u53ef\u7f16\u8f91\u7684\u56fe\u8868\u3002\u652f\u6301\u8282\u70b9\u4e0e\u8fde\u7ebf\u7f16\u8f91\u3001\u5c40\u90e8\u4fee\u6539\uff0c\u5e76\u53ef\u5bfc\u51fa draw.io XML\u3002",
tags: ["\u7ed3\u6784\u5316\u751f\u6210", "\u5c40\u90e8\u4fee\u6539", "draw.io XML"],
bullets: ["\u667a\u80fd\u89e3\u6790\u9700\u6c42\uff0c\u81ea\u52a8\u62bd\u53d6\u6d41\u7a0b\u8282\u70b9\u4e0e\u5173\u7cfb", "\u652f\u6301\u8282\u70b9\u4e0e\u8fde\u7ebf\u7f16\u8f91\uff0c\u62d6\u62fd\u5373\u6539", "\u5c40\u90e8\u4fee\u6539\uff0c\u5feb\u901f\u5fae\u8c03\u590d\u6742\u6d41\u7a0b", "\u5bfc\u51fa draw.io XML\uff0c\u4fbf\u4e8e\u590d\u7528\u4e0e\u534f\u4f5c"],
previews: [
@@ -111,13 +111,13 @@ const detailConfigs: Record<PortalWorkspace, DetailConfig> = {
steps: [
{ title: "\u8f93\u5165\u9700\u6c42", text: "\u7528\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u6d41\u7a0b\u76ee\u6807\u4e0e\u7ea6\u675f\u3002", icon: FileText },
{ title: "\u7ed3\u6784\u5316\u89e3\u6790", text: "AI \u62bd\u53d6\u8282\u70b9\u3001\u5173\u7cfb\u4e0e\u65b9\u5411\u3002", icon: Share2 },
- { title: "\u751f\u6210 XML", text: "\u8f6c\u6362\u4e3a draw.io \u517c\u5bb9\u7684\u56fe\u6807\u6570\u636e\u3002", icon: Code2 },
+ { title: "\u751f\u6210 XML", text: "\u8f6c\u6362\u4e3a draw.io \u517c\u5bb9\u7684\u56fe\u8868\u6570\u636e\u3002", icon: Code2 },
{ title: "\u9884\u89c8\u4e0e\u6821\u9a8c", text: "\u68c0\u67e5\u8282\u70b9\u4e0e\u8fde\u7ebf\u662f\u5426\u7b26\u5408\u9884\u671f\u3002", icon: ChartNoAxesCombined },
{ title: "\u5c40\u90e8\u4fee\u6539", text: "\u5bf9\u8282\u70b9\u6216\u8fde\u7ebf\u8fdb\u884c\u7cbe\u7ec6\u8c03\u6574\u3002", icon: Pencil },
{ title: "\u5bfc\u51fa\u590d\u7528", text: "\u5bfc\u51fa draw.io XML\uff0c\u7528\u4e8e\u534f\u4f5c\u4e0e\u590d\u7528\u3002", icon: Upload },
],
cta: "\u5f00\u59cb\u7ed8\u5236",
- slogan: "\u8ba9\u56fe\u6807\u50cf\u753b\u5e03\u4e00\u6837\u81ea\u7531\u521b\u4f5c",
+ slogan: "\u8ba9\u56fe\u8868\u50cf\u753b\u5e03\u4e00\u6837\u81ea\u7531\u521b\u4f5c",
},
cad: {
title: "\u5ba4\u5185\u8bbe\u8ba1\u753b\u5e03",
@@ -563,7 +563,7 @@ export function PortalPage({ onEnterWorkspace }: PortalPageProps) {
titleB: "\u521b\u4f5c\u7684",
titleAccent: "\u667a\u80fd\u5de5\u4f5c\u53f0",
intro:
- "CanvasAnvil \u652f\u6301\u4e09\u79cd\u753b\u5e03\uff1a\u56fe\u6807\u753b\u5e03\u3001\u5ba4\u5185\u8bbe\u8ba1\u753b\u5e03\u3001PPT\u753b\u5e03\u3002\u63d0\u4f9b\u7ed3\u6784\u5316\u751f\u6210\u4e0e\u672c\u5730\u5c40\u90e8\u4fee\u6539\u80fd\u529b\uff0c\u5e2e\u52a9\u4f60\u9ad8\u6548\u3001\u53ef\u63a7\u5730\u5b8c\u6210\u5404\u7c7b\u53ef\u89c6\u5316\u521b\u4f5c\u3002",
+ "CanvasAnvil \u652f\u6301\u4e09\u79cd\u753b\u5e03\uff1a\u56fe\u8868\u753b\u5e03\u3001\u5ba4\u5185\u8bbe\u8ba1\u753b\u5e03\u3001PPT\u753b\u5e03\u3002\u63d0\u4f9b\u7ed3\u6784\u5316\u751f\u6210\u4e0e\u672c\u5730\u5c40\u90e8\u4fee\u6539\u80fd\u529b\uff0c\u5e2e\u52a9\u4f60\u9ad8\u6548\u3001\u53ef\u63a7\u5730\u5b8c\u6210\u5404\u7c7b\u53ef\u89c6\u5316\u521b\u4f5c\u3002",
tagA: "\u4e09\u79cd\u753b\u5e03",
tagB: "\u7ed3\u6784\u5316\u751f\u6210",
tagC: "\u5c40\u90e8\u4fee\u6539",
diff --git a/client/pages/portal/data.ts b/client/pages/portal/data.ts
index 26c0d47..fa1cd34 100644
--- a/client/pages/portal/data.ts
+++ b/client/pages/portal/data.ts
@@ -14,9 +14,9 @@ export type PortalCanvasItem = {
export const portalCanvasItems: PortalCanvasItem[] = [
{
id: "flow",
- zhTitle: "\u56fe\u6807\u753b\u5e03",
+ zhTitle: "\u56fe\u8868\u753b\u5e03",
enTitle: "Flow Canvas",
- zhSummary: "\u7ed3\u6784\u5316\u56fe\u6807\u4e0e\u8282\u70b9\u7ea7\u5c40\u90e8\u4fee\u6539",
+ zhSummary: "\u7ed3\u6784\u5316\u56fe\u8868\u4e0e\u8282\u70b9\u7ea7\u5c40\u90e8\u4fee\u6539",
enSummary: "Structured flow diagrams with node-level edits",
image: "/examples/flow/01.png",
angle: -90,
diff --git a/client/shared/i18n/messages.ts b/client/shared/i18n/messages.ts
index 4251833..5fa15a1 100644
--- a/client/shared/i18n/messages.ts
+++ b/client/shared/i18n/messages.ts
@@ -40,7 +40,7 @@ const messages = {
"chat.collapseLocked": { zh: "PPT 生成完成前不能收起聊天", en: "Chat cannot be collapsed while PPT is generating" },
"chat.collapse": { zh: "收起聊天", en: "Collapse chat" },
- "nav.flow": { zh: "图标绘制", en: "Flow" },
+ "nav.flow": { zh: "图表绘制", en: "Flow" },
"nav.cad": { zh: "室内设计", en: "CAD" },
"nav.ppt": { zh: "PPT演示", en: "PPT" },
diff --git a/client/workspaces/flow/chat/code-block.tsx b/client/workspaces/flow/chat/code-block.tsx
index 803b8ad..6157a02 100644
--- a/client/workspaces/flow/chat/code-block.tsx
+++ b/client/workspaces/flow/chat/code-block.tsx
@@ -37,7 +37,7 @@ export function CodeBlock({
framed={framed}
onApply={onApply as ApplyCode | undefined}
icon={<Workflow className="h-3.5 w-3.5" />}
- title={uiLang === "zh" ? "生成图标" : "Generate diagram"}
+ title={uiLang === "zh" ? "生成图表" : "Generate diagram"}
/>
)
}
diff --git a/client/workspaces/flow/lib/translations.ts b/client/workspaces/flow/lib/translations.ts
index 417069d..2d9779d 100644
--- a/client/workspaces/flow/lib/translations.ts
+++ b/client/workspaces/flow/lib/translations.ts
@@ -3,18 +3,18 @@ import { createTranslator, type Dict } from "@/shared/i18n/translator";
/** Strings owned by the Flow workspace. */
const messages = {
// ChatPanel
- "app.title": { zh: "图标助手", en: "Next AI Drawio" },
- "welcome.title": { zh: "用 AI 创建图标", en: "Create diagrams with AI" },
+ "app.title": { zh: "图表助手", en: "Next AI Drawio" },
+ "welcome.title": { zh: "用 AI 创建图表", en: "Create diagrams with AI" },
"welcome.desc": { zh: "描述你想创建的内容,或上传图片进行复刻", en: "Describe what you want to create or upload an image to replicate" },
"app.about": { zh: "关于", en: "About" },
"chat.panel.show": { zh: "展开交互区 (Ctrl+B)", en: "Show chat panel (Ctrl+B)" },
"chat.panel.hide": { zh: "收起交互区 (Ctrl+B)", en: "Hide chat panel (Ctrl+B)" },
- "chat.panel.title": { zh: "图标交互区", en: "Flowchart Assistant" },
+ "chat.panel.title": { zh: "图表交互区", en: "Flowchart Assistant" },
"chat.settings": { zh: "设置", en: "Settings" },
"chat.vertical.title": { zh: "AI 对话", en: "AI Chat" },
// ChatInput
- "input.placeholder": { zh: "描述你的图标需求,或上传文件...", en: "Describe your diagram or upload a file..." },
+ "input.placeholder": { zh: "描述你的图表需求,或上传文件...", en: "Describe your diagram or upload a file..." },
"input.clear": { zh: "清空对话", en: "Clear conversation" },
"input.upload": { zh: "上传文件(图片、PDF、文本)", en: "Upload file (image, PDF, text)" },
"input.upload_image": { zh: "上传图片", en: "Upload image" },
@@ -82,12 +82,12 @@ const messages = {
// ResetWarningModal
"reset.title": { zh: "确认清空?", en: "Clear Everything?" },
- "reset.desc": { zh: "这会清空当前对话并重置图标,且无法撤销。", en: "This will clear the current conversation and reset the diagram. This action cannot be undone." },
+ "reset.desc": { zh: "这会清空当前对话并重置图表,且无法撤销。", en: "This will clear the current conversation and reset the diagram. This action cannot be undone." },
"reset.confirm": { zh: "确认清空", en: "Clear Everything" },
"reset.cancel": { zh: "取消", en: "Cancel" },
// SaveDialog
- "save.title": { zh: "保存图标", en: "Save Diagram" },
+ "save.title": { zh: "保存图表", en: "Save Diagram" },
"save.desc": { zh: "选择保存格式。", en: "Choose a format to save your diagram." },
"save.format": { zh: "格式", en: "Format" },
"save.filename": { zh: "文件名", en: "Filename" },
@@ -97,23 +97,23 @@ const messages = {
// ExamplePanel
"example.aws.title": { zh: "AWS 架构图", en: "AWS Architecture" },
"example.aws.desc": { zh: "用 AWS 图标生成云架构图", en: "Create a cloud architecture diagram with AWS icons" },
- "example.flowchart.title": { zh: "复刻图标", en: "Replicate Flowchart" },
- "example.flowchart.desc": { zh: "上传并复刻已有图标", en: "Upload and replicate an existing flowchart" },
+ "example.flowchart.title": { zh: "复刻图表", en: "Replicate Flowchart" },
+ "example.flowchart.desc": { zh: "上传并复刻已有图表", en: "Upload and replicate an existing flowchart" },
"example.creative.title": { zh: "创意绘图", en: "Creative Drawing" },
"example.creative.desc": { zh: "生成有趣的创意图形", en: "Draw something fun and creative" },
"example.cached": { zh: "示例已缓存,可快速响应", en: "Examples are cached for instant response" },
"example.new": { zh: "新", en: "NEW" },
"examples.title": { zh: "快速示例", en: "Quick Examples" },
- "examples.paper.title": { zh: "论文转图标", en: "Paper to Diagram" },
+ "examples.paper.title": { zh: "论文转图表", en: "Paper to Diagram" },
"examples.paper.desc": { zh: "支持上传 .pdf、.txt、.md、.json、.csv、.py、.js、.ts 等文件", en: "Upload .pdf, .txt, .md, .json, .csv, .py, .js, .ts and more" },
- "examples.animated.title": { zh: "动画图标", en: "Animated Diagram" },
+ "examples.animated.title": { zh: "动画图表", en: "Animated Diagram" },
"examples.animated.desc": { zh: "绘制带动画连线的 Transformer 架构图", en: "Draw a transformer architecture with animated connectors" },
- "tooltip.history": { zh: "图标历史", en: "Diagram history" },
- "tooltip.save": { zh: "保存图标", en: "Save diagram" },
+ "tooltip.history": { zh: "图表历史", en: "Diagram history" },
+ "tooltip.save": { zh: "保存图表", en: "Save diagram" },
"tooltip.deep_thinking": { zh: "深度思考", en: "Deep Think" },
// HistoryDialog
- "history.title": { zh: "图标历史记录", en: "Diagram History" },
+ "history.title": { zh: "图表历史记录", en: "Diagram History" },
"history.empty": { zh: "暂无历史记录,发送消息后会生成历史版本。", en: "No history available yet. Send messages to create diagram history." },
"history.version": { zh: "版本", en: "Version" },
"history.restore": { zh: "恢复到版本", en: "Restore to Version" },
@@ -129,9 +129,9 @@ const messages = {
// Tool call cards. These were the last hardcoded English in the panel: the
// card sat directly above a fully translated code block.
- "tool.display_diagram": { zh: "生成图标", en: "Generate Diagram" },
- "tool.edit_diagram": { zh: "编辑图标", en: "Edit Diagram" },
- "tool.append_diagram": { zh: "追加图标", en: "Append Diagram" },
+ "tool.display_diagram": { zh: "生成图表", en: "Generate Diagram" },
+ "tool.edit_diagram": { zh: "编辑图表", en: "Edit Diagram" },
+ "tool.append_diagram": { zh: "追加图表", en: "Append Diagram" },
"tool.get_shape_library": { zh: "读取图形库", en: "Get Shape Library" },
"tool.status.complete": { zh: "完成", en: "Complete" },
"tool.status.truncated": { zh: "已截断", en: "Truncated" },