From 09fdf5198ddcdd51e9b88bc5bff66c2acccbcb4b Mon Sep 17 00:00:00 2001 From: 2sky <2skydev@gmail.com> Date: Sat, 30 Sep 2023 23:33:14 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20SystemLocale=20dash=20to?= =?UTF-8?q?=20underscore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/electron/electron.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/modules/electron/electron.service.ts b/src/main/modules/electron/electron.service.ts index 7d96642..625e2f2 100644 --- a/src/main/modules/electron/electron.service.ts +++ b/src/main/modules/electron/electron.service.ts @@ -443,7 +443,7 @@ export const generatedIpcOnContext = {` } private async initI18Next() { - const systemLocale = app.getSystemLocale() + const systemLocale = app.getSystemLocale().replace('-', '_') const savedLanguage = this.configService.get('general.language') if (!savedLanguage) {