From f6d1bf0e461bb0be81c8f7a93cc4ff4aadf83605 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Fri, 23 Feb 2024 14:31:54 -0300 Subject: [PATCH] fix: system locale not working in some languages --- src/i18n/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/main.ts b/src/i18n/main.ts index 6b07d469c..84221a08c 100644 --- a/src/i18n/main.ts +++ b/src/i18n/main.ts @@ -13,7 +13,7 @@ const hasLng = (lng: string): lng is keyof typeof resources => lng in resources; const getLng = async (): Promise => { await app.whenReady(); - const locale = app.getLocale(); + const locale = app.getSystemLocale(); let [languageCode, countryCode] = locale.split(/[-_]/) as [ string,