Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

fix(studio): make Chinese editing notices actionable

罗高221d0ef6386d
diff --git a/studio/src/i18n/error-ui.json b/studio/src/i18n/error-ui.json
index c2b81eb7..6e09f22e 100644
--- a/studio/src/i18n/error-ui.json
+++ b/studio/src/i18n/error-ui.json
@@ -38,14 +38,14 @@
"Please wait 30 seconds before exporting diagnostics again.": "请等待 30 秒后再次导出诊断信息。",
"Could not export diagnostics. Use the command line if Studio cannot connect.": "无法导出诊断信息。工作室无法连接时可使用命令行。",
"Download started. Check your browser downloads.": "已发起下载,请查看浏览器下载列表。",
- "This element was not found in the current source. Refresh the preview, then ask an agent to edit the source if it is still unavailable.": "在当前源码中找不到此元素。请刷新预览;仍无法编辑时,可让 Agent 修改源码。",
- "The preview element does not match the current source. Refresh the preview and select it again.": "预览元素与当前源码不匹配。请刷新预览后重新选择。",
- "This element type cannot be edited visually yet. Select its outer container or ask an agent to edit the source.": "暂不支持直接编辑此类元素。请选择外层容器,或让 Agent 修改源码。",
- "The source file could not be found. Refresh the preview or ask an agent to restore the source file.": "找不到源文件。请刷新预览,或让 Agent 恢复源文件。",
- "Access to the source file was denied. Check file permissions and select the element again.": "没有源文件访问权限。请检查文件权限后重新选择元素。",
- "The source file could not be read. Try again or ask an agent to check the source file.": "无法读取源文件。请重试,或让 Agent 检查源文件。",
- "Cannot connect to the editor to check this element. Check the connection and select it again.": "无法连接编辑器以检查此元素。请检查连接后重新选择。",
- "Could not check whether this element can be edited. Select it again or refresh the preview.": "暂时无法确认此元素能否编辑。请重新选择,或刷新预览。"
+ "This element was not found in the current source. Refresh the preview, then ask an agent to edit the source if it is still unavailable.": "暂时无法直接编辑此元素:未能在源文件中定位到它。请刷新预览重试,或让 Agent 修改。",
+ "The preview element does not match the current source. Refresh the preview and select it again.": "画面内容与源文件不一致,暂时无法编辑。请刷新预览后重新选择。",
+ "This element type cannot be edited visually yet. Select its outer container or ask an agent to edit the source.": "此类元素暂不支持直接编辑。请选择外层容器,或让 Agent 修改。",
+ "The source file could not be found. Refresh the preview or ask an agent to restore the source file.": "找不到此元素的源文件,暂时无法编辑。请让 Agent 检查或恢复文件。",
+ "Access to the source file was denied. Check file permissions and select the element again.": "没有此元素源文件的访问权限。请检查文件权限后重试。",
+ "The source file could not be read. Try again or ask an agent to check the source file.": "暂时无法读取此元素的源文件。请重试;仍失败时,可让 Agent 检查文件。",
+ "Cannot connect to the editor to check this element. Check the connection and select it again.": "无法连接编辑器,暂时无法编辑。请检查连接后重新选择。",
+ "Could not check whether this element can be edited. Select it again or refresh the preview.": "暂时无法确认此元素能否编辑。请重新选择,或刷新预览重试。"
},
"ja": {
"Reconnecting…": "再接続中…",
diff --git a/studio/tests/e2e/source-probe-reasons.mjs b/studio/tests/e2e/source-probe-reasons.mjs
index e6b23815..285a9334 100644
--- a/studio/tests/e2e/source-probe-reasons.mjs
+++ b/studio/tests/e2e/source-probe-reasons.mjs
@@ -78,8 +78,8 @@ try {
await page.screenshot({ path: path.join(evidence, 'save-refresh-undo.png') });
for (const [label, id, reason, text] of [
- ['Static Svg', 'static-svg', 'cannot be edited visually yet', '暂不支持直接编辑此类元素'],
- ['Dynamic', 'dynamic', 'not found in the current source', '在当前源码中找不到此元素'],
+ ['Static Svg', 'static-svg', 'cannot be edited visually yet', '此类元素暂不支持直接编辑'],
+ ['Dynamic', 'dynamic', 'not found in the current source', '未能在源文件中定位到它'],
]) {
const current = await handle(label);
const inspected = await call('studio_inspect', { handle: current });