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
@@ -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}`],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user