Match multiple locales for spellchecker

This commit is contained in:
Jamie Kyle
2023-03-31 15:36:14 -07:00
committed by GitHub
parent 2edc47118e
commit a4055cec40
5 changed files with 72 additions and 31 deletions

View File

@@ -800,7 +800,11 @@ async function createWindow() {
}
mainWindowCreated = true;
setupSpellChecker(mainWindow, getResolvedMessagesLocale());
setupSpellChecker(
mainWindow,
getPreferredSystemLocales(),
getResolvedMessagesLocale().i18n
);
if (!startInTray && windowConfig && windowConfig.maximized) {
mainWindow.maximize();
}