Skip to content

Commit

Permalink
fix: System locale not working in some languages (#2856)
Browse files Browse the repository at this point in the history
* fix: system locale not working in some languages
  • Loading branch information
jeanfbrito authored Aug 15, 2024
1 parent fb894dc commit cebf190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const hasLng = (lng: string): lng is keyof typeof resources => lng in resources;
const getLng = async (): Promise<keyof typeof resources | undefined> => {
await app.whenReady();

const locale = app.getLocale();
const locale = app.getSystemLocale();

let [languageCode, countryCode] = locale.split(/[-_]/) as [
string,
Expand Down

0 comments on commit cebf190

Please sign in to comment.