Use LocaleMatcher to resolve system preferred locales

This commit is contained in:
Jamie Kyle
2023-04-17 12:26:57 -07:00
committed by GitHub
parent 68ae25f5cd
commit cdc68d1c34
9 changed files with 224 additions and 48 deletions

View File

@@ -1563,11 +1563,7 @@ ipc.on('database-readonly', (_event: Electron.Event, error: string) => {
function loadPreferredSystemLocales(): Array<string> {
return getEnvironment() === Environment.Test
? ['en']
: [
// TODO(DESKTOP-4929): Temp fix to inherit Chromium's l10n_util logic
app.getLocale(),
...app.getPreferredSystemLanguages(),
];
: app.getPreferredSystemLanguages();
}
async function getDefaultLoginItemSettings(): Promise<LoginItemSettingsOptions> {