mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fix support of multiple languages for spellchecking + list all available languages, closes #974
This commit is contained in:
@@ -68,7 +68,7 @@ async function createMainWindow() {
|
||||
|
||||
if (spellcheckEnabled) {
|
||||
const languageCodes = (await optionService.getOption('spellCheckLanguageCode'))
|
||||
.split('/')
|
||||
.split(',')
|
||||
.map(code => code.trim());
|
||||
|
||||
webContents.session.setSpellCheckerLanguages(languageCodes);
|
||||
|
||||
Reference in New Issue
Block a user