Skip to content
Closed
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",
"ja": "",
"ko": "",
"ru": "",
"en": "",
"fr": ""
Comment on lines +3449 to +3456
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.

The new localization entry "gl01kl7e" (lines 3450-3457) contains test/sample content ("这是一段测试文字", "Hello Word!" with a typo) and only has Chinese translation. This appears to be temporary test data that should either be removed or properly completed with translations for all supported languages (ja, ko, ru, en, fr) before merging.

Suggested change
},
"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",
"ja": "",
"ko": "",
"ru": "",
"en": "",
"fr": ""

Copilot uses AI. Check for mistakes.
}
}
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