mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
feat(electron): respect formatting locale
This commit is contained in:
parent
45208c8039
commit
a5a7a30cd5
@ -6,6 +6,7 @@ import electronDl from "electron-dl";
|
|||||||
import sqlInit from "./src/services/sql_init.js";
|
import sqlInit from "./src/services/sql_init.js";
|
||||||
import windowService from "./src/services/window.js";
|
import windowService from "./src/services/window.js";
|
||||||
import tray from "./src/services/tray.js";
|
import tray from "./src/services/tray.js";
|
||||||
|
import options from "./src/services/options.js";
|
||||||
|
|
||||||
import sourceMapSupport from "source-map-support";
|
import sourceMapSupport from "source-map-support";
|
||||||
sourceMapSupport.install();
|
sourceMapSupport.install();
|
||||||
@ -22,6 +23,7 @@ electronDl({ saveAs: true });
|
|||||||
|
|
||||||
// needed for excalidraw export https://github.com/zadam/trilium/issues/4271
|
// needed for excalidraw export https://github.com/zadam/trilium/issues/4271
|
||||||
electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features");
|
electron.app.commandLine.appendSwitch("enable-experimental-web-platform-features");
|
||||||
|
electron.app.commandLine.appendSwitch("lang", options.getOption("formattingLocale") ?? "en");
|
||||||
|
|
||||||
electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`;
|
electron.app.userAgentFallback = `${electron.app.getName()} ${electron.app.getVersion()}`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user