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

+3
View File
@@ -6,6 +6,8 @@ export interface CreateWindowOptions {
preloadPath: string;
rendererDist: string;
devServerUrl?: string;
/** UI language for renderer strings; injected synchronously via argv. */
language: string;
}
export function createMainWindow(options: CreateWindowOptions): BrowserWindow {
@@ -27,6 +29,7 @@ export function createMainWindow(options: CreateWindowOptions): BrowserWindow {
sandbox: true,
webSecurity: true,
allowRunningInsecureContent: false,
additionalArguments: [`--app-language=${options.language}`],
},
});