aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/types/importMeta.d.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-03 02:05:40 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:54:59 +0200
commit49c622189cf1d2c489b963d9be2f7493543afa3a (patch)
tree87636e0c08ce6ee2258566e3e0879707c9a51ea7 /packages/main/types/importMeta.d.ts
parentbuild: Allow command line arguments to watch (diff)
downloadsophie-49c622189cf1d2c489b963d9be2f7493543afa3a.tar.gz
sophie-49c622189cf1d2c489b963d9be2f7493543afa3a.tar.zst
sophie-49c622189cf1d2c489b963d9be2f7493543afa3a.zip
feat(main): Language setting in config file
Load localization according to either the environment or the configuration file from the list of supported locales. Ideally, we would also set the chromium locale with --lang, but by the time we have read the config file (to known which locale to set), electron has already initialized the chromium resource bundle. So the chromium localization will always be auto-detected by chromium. Also makes startup hopefully a bit faster by doing more things concurrently while the localization and the main window is being loaded. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/types/importMeta.d.ts')
-rw-r--r--packages/main/types/importMeta.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/main/types/importMeta.d.ts b/packages/main/types/importMeta.d.ts
index 7426961..9818ca1 100644
--- a/packages/main/types/importMeta.d.ts
+++ b/packages/main/types/importMeta.d.ts
@@ -7,5 +7,6 @@ interface ImportMeta {
7 GIT_SHA: string; 7 GIT_SHA: string;
8 GIT_BRANCH: string; 8 GIT_BRANCH: string;
9 BUILD_DATE: number; 9 BUILD_DATE: number;
10 SUPPORTED_LOCALES: string[];
10 }; 11 };
11} 12}