Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lang/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 导入国际化JSON文件
// 导入国际化JSON文件(合并模式)
import langJSON from "./index.json";
(function () {
// 定义翻译函数
Expand Down Expand Up @@ -42,7 +42,7 @@ import langJSON from "./index.json";
globalThis.$t = globalThis.$t || $t;
// 将简单翻译函数挂载到globalThis对象上
globalThis.$$t = $$t;
// 定义从JSON文件中获取指定键的语言对象的方法
// 定义从JSON文件中获取指定键的语言对象的方法(合并模式)
globalThis._getJSONKey = function (key, insertJSONObj = undefined) {
// 获取JSON对象
const JSONObj = insertJSONObj;
Expand Down
8 changes: 8 additions & 0 deletions lang/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3446,5 +3446,13 @@
"ru": "",
"en": "",
"fr": ""
},
"gl01kl7e": {
"zh-cn": "\n<br />\n\n# MilkUp\n\n<br />\n\n> 这是一段测试文字\n\n<br />\n\n***\n\n<br />\n\n* item1\n* item2\n* item3\n\n代码:\n\n```JavaScript\nconst text = \"Hello Word!\"\nconsole.log(text)\n```\n\n<br />\n\n| 1 | 2 | 3 |\n| :- | :- | :- |\n| 1 | 2 | 3 |\n| 1 | 2 | 3 |\n\n\n",
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the sample code string: “Hello Word!” should be “Hello World!”.

Suggested change
"zh-cn": "\n<br />\n\n# MilkUp\n\n<br />\n\n> 这是一段测试文字\n\n<br />\n\n***\n\n<br />\n\n* item1\n* item2\n* item3\n\n代码:\n\n```JavaScript\nconst text = \"Hello Word!\"\nconsole.log(text)\n```\n\n<br />\n\n| 1 | 2 | 3 |\n| :- | :- | :- |\n| 1 | 2 | 3 |\n| 1 | 2 | 3 |\n\n\n",
"zh-cn": "\n<br />\n\n# MilkUp\n\n<br />\n\n> 这是一段测试文字\n\n<br />\n\n***\n\n<br />\n\n* item1\n* item2\n* item3\n\n代码:\n\n```JavaScript\nconst text = \"Hello World!\"\nconsole.log(text)\n```\n\n<br />\n\n| 1 | 2 | 3 |\n| :- | :- | :- |\n| 1 | 2 | 3 |\n| 1 | 2 | 3 |\n\n\n",

Copilot uses AI. Check for mistakes.
"ja": "",
"ko": "",
"ru": "",
Comment on lines +3450 to +3454
Copy link

Copilot AI Feb 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new i18n entry looks like test/demo content (e.g., “这是一段测试文字”) and the key doesn’t appear to be referenced elsewhere. Since it’s unrelated to the multi-window feature, please remove it or document where it’s used to avoid shipping stray content in production builds.

Copilot uses AI. Check for mistakes.
"en": "",
"fr": ""
}
}
5 changes: 5 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from "./ipcBridge";
import createMenu from "./menu";
import { setupUpdateHandlers } from "./update";
import { trackWindow } from "./windowManager";

let win: BrowserWindow;
let themeEditorWindow: BrowserWindow | null = null;
Expand All @@ -34,6 +35,10 @@ async function createWindow() {
webSecurity: false, // 允许加载本地文件
},
});

// 注册为主窗口
trackWindow(win, true);

globalShortcut.register("CommandOrControl+Shift+I", () => {
if (win) win.webContents.openDevTools();
});
Expand Down
Loading
Loading