Use LocaleMatcher to resolve system preferred locales
This commit is contained in:
parent
68ae25f5cd
commit
cdc68d1c34
9 changed files with 224 additions and 48 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue