Localize the renderer UI into Chinese behind the language setting

This commit is contained in:
ZacharyZhang-NY committed 2026-07-07 13:22:19 -04:00
1 parent d404e1e72a
commit 3e4c7c81a2
58 files changed
+1176 -597

No files matched your search

+1
View File
@@ -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),