Localize the renderer UI into Chinese behind the language setting
This commit is contained in:
1 parent
d404e1e72a
commit
3e4c7c81a2
58 files changed
+1176
-597
No files matched your search
@@ -94,6 +94,7 @@ const api: DesktopApi = {
|
||||
return () => ipcRenderer.removeListener(IPC_CHANNELS.rendererEvent, listener);
|
||||
},
|
||||
platform: process.platform as DesktopApi["platform"],
|
||||
language: (process.argv.find((arg) => arg.startsWith("--app-language="))?.slice("--app-language=".length) === "zh" ? "zh" : "en") as DesktopApi["language"],
|
||||
windowMinimize: () => invoke<void>(IPC_CHANNELS.windowMinimize),
|
||||
windowMaximize: () => invoke<void>(IPC_CHANNELS.windowMaximize),
|
||||
windowClose: () => invoke<void>(IPC_CHANNELS.windowClose),
|
||||
|
||||
Reference in new issue
Block a user