新增 完整的国际化(i18n)支持,支持中英日三种语言

This commit is contained in:
2026-04-18 00:52:34 +08:00
parent d184cfef6e
commit 3577e139b9
13 changed files with 786 additions and 169 deletions

View File

@@ -23,5 +23,10 @@ contextBridge.exposeInMainWorld('electronAPI', {
// 托盘事件监听
onApiProfileSwitched: (callback) => {
ipcRenderer.on('api-profile-switched', (event, profileName) => callback(profileName))
},
// 语言切换通知
notifyLanguageChanged: () => {
ipcRenderer.send('language-changed')
}
})