I tried to add spell checker to a language other than English, for example Hebrew. I tried all the following as written in the documentation, none of them worked:
let dictionarySync = new DictionarySync();dictionarySync.loadDictionaryForLanguage('he-IL');window.spellCheckHandler = new SpellCheckHandler(dictionarySync);
What am I doing wrong?
This comment appears in the code: '// NB: OS X does automatic language detection, we're gonna trust it'
and then this.currentSpellcheckerLanguage is set to 'en-US'
I didn't manage to make it work for a language like Spanish as well, even when I add Spanish to my Mac's languages and keyboard layouts
I guess spell checker should work for other languages except English as well
Please help!
I tried to add spell checker to a language other than English, for example Hebrew. I tried all the following as written in the documentation, none of them worked:
window.spellCheckHandler.switchLanguage('he-IL');
window.spellCheckHandler.loadDictionaryForLanguageWithAlternatives('he-IL');
let dictionarySync = new DictionarySync();
dictionarySync.loadDictionaryForLanguage('he-IL');
window.spellCheckHandler = new SpellCheckHandler(dictionarySync);
What am I doing wrong? This comment appears in the code: '// NB: OS X does automatic language detection, we're gonna trust it' and then
this.currentSpellcheckerLanguage
is set to 'en-US' I didn't manage to make it work for a language like Spanish as well, even when I add Spanish to my Mac's languages and keyboard layoutsI guess spell checker should work for other languages except English as well Please help!