You've already forked iFlow-Settings-Editor-GUI
新增 完整的国际化(i18n)支持,支持中英日三种语言
This commit is contained in:
@@ -23,5 +23,10 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
||||
// 托盘事件监听
|
||||
onApiProfileSwitched: (callback) => {
|
||||
ipcRenderer.on('api-profile-switched', (event, profileName) => callback(profileName))
|
||||
},
|
||||
|
||||
// 语言切换通知
|
||||
notifyLanguageChanged: () => {
|
||||
ipcRenderer.send('language-changed')
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user