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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}