AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
i18n(visual-edit): localize editor UI to English
hugohe3e1d26cad9271
diff --git a/skills/ppt-master/scripts/svg_editor/static/app.js b/skills/ppt-master/scripts/svg_editor/static/app.jsindex 1df19c8d..1652be4d 100644--- a/skills/ppt-master/scripts/svg_editor/static/app.js+++ b/skills/ppt-master/scripts/svg_editor/static/app.js@@ -172,7 +172,7 @@}selectedElementId = null;selectedElementEl.classList.add("empty");- selectedElementEl.innerHTML = "点击 SVG 元素进行选择";+ selectedElementEl.innerHTML = "Click an element on the slide to select it";annotationInput.style.display = "none";annotationText.value = "";}@@ -254,7 +254,7 @@var ids = Object.keys(slideAnnotations);if (ids.length === 0) {- annotationsEl.innerHTML = '<div class="annotations-empty">暂无标注</div>';+ annotationsEl.innerHTML = '<div class="annotations-empty">No annotations yet</div>';return;}@@ -287,7 +287,7 @@var removeBtn = document.createElement("button");removeBtn.className = "ann-remove";removeBtn.innerHTML = "×";- removeBtn.title = "删除标注";+ removeBtn.title = "Remove annotation";removeBtn.addEventListener("click", function () {removeAnnotation(eid);});@@ -307,8 +307,8 @@// ================================================================// 10. Save all -- two-step: confirm then save + shutdown// ================================================================- var CONFIRM_MSG = "点击提交后页面将关闭,请确认已完成所有批注。";- var SUCCESS_MSG = "标注已提交\n\n请告诉AI你已经提交标注,继续修改";+ var CONFIRM_MSG = "Submitting will close this page. Make sure you've added all the annotations you want.";+ var SUCCESS_MSG = "Annotations submitted.\n\nReturn to the chat and tell the AI you're ready — it will apply your edits.";btnSave.addEventListener("click", function () {// Step 1: show confirmation@@ -327,14 +327,14 @@.then(function (res) { return res.json(); }).then(function (data) {if (data.error) {- modalMessage.textContent = "保存失败:" + data.error;+ modalMessage.textContent = "Save failed: " + data.error;} else {modalMessage.textContent = SUCCESS_MSG;fetch("/api/shutdown", { method: "POST" }).catch(function () {});}}).catch(function (err) {- modalMessage.textContent = "保存失败:" + err;+ modalMessage.textContent = "Save failed: " + err;});});diff --git a/skills/ppt-master/scripts/svg_editor/static/index.html b/skills/ppt-master/scripts/svg_editor/static/index.htmlindex b54550fb..328731a5 100644--- a/skills/ppt-master/scripts/svg_editor/static/index.html+++ b/skills/ppt-master/scripts/svg_editor/static/index.html@@ -1,47 +1,47 @@<!DOCTYPE html>-<html lang="zh-CN">+<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>PPT Master - SVG Editor</title>+ <title>PPT Master - Visual Edit</title><link rel="stylesheet" href="/static/style.css"></head><body><div id="app"><div id="panel-left">- <div class="panel-header">幻灯片</div>+ <div class="panel-header">Slides</div><div id="slide-list"></div></div><div id="panel-center"><div id="svg-container">- <div id="svg-placeholder">选择左侧幻灯片开始编辑</div>+ <div id="svg-placeholder">Select a slide on the left to begin</div><div id="svg-content" style="display:none;"></div></div></div><div id="panel-right">- <div class="panel-header">批注面板</div>+ <div class="panel-header">Annotations</div><div id="selection-info">- <div class="section-label">当前选中</div>- <div id="selected-element" class="empty">点击 SVG 元素进行选择</div>+ <div class="section-label">Selected element</div>+ <div id="selected-element" class="empty">Click an element on the slide to select it</div></div><div id="annotation-input" style="display:none;">- <div class="section-label">修改指令</div>- <textarea id="annotation-text" placeholder="描述你希望 AI 如何修改这个元素..."></textarea>- <button id="btn-add-annotation">添加标注</button>+ <div class="section-label">Edit instruction</div>+ <textarea id="annotation-text" placeholder="Describe how the AI should modify this element..."></textarea>+ <button id="btn-add-annotation">Add annotation</button></div><div id="annotation-list">- <div class="section-label">本页标注</div>+ <div class="section-label">Annotations on this slide</div><div id="annotations"></div></div>- <button id="btn-save" class="btn-save">保存所有标注到 SVG</button>+ <button id="btn-save" class="btn-save">Submit annotations</button></div></div><div id="modal-overlay" style="display:none;"><div id="modal"><div id="modal-message"></div><div id="modal-buttons">- <button id="modal-confirm">确认提交</button>- <button id="modal-cancel">取消</button>+ <button id="modal-confirm">Submit</button>+ <button id="modal-cancel">Cancel</button></div></div></div>diff --git a/skills/ppt-master/workflows/visual-edit.md b/skills/ppt-master/workflows/visual-edit.mdindex b35224b5..20fc767c 100644--- a/skills/ppt-master/workflows/visual-edit.md+++ b/skills/ppt-master/workflows/visual-edit.md@@ -33,7 +33,7 @@ The server binds to `127.0.0.1:5050` and edits `<project_path>/svg_output/` in pAfter the server prints `SVG Editor running at http://localhost:5050`, tell the user (in their language) in a single message:- the editor is running at `http://localhost:5050`-- they should open it in a browser, click the element they want changed, write the change as a short instruction, then click **保存 / Save**+- they should open it in a browser, click the element they want changed, write the change as a short instruction, then click **Submit annotations**- after saving, the server auto-shuts and they should return to the conversation- if they'd rather just describe the edit in chat, they can say so and you'll apply it directly without the editor