electron-userland / electron-spellchecker

Implement spellchecking, correctly
MIT License
237 stars 83 forks source link

Can't add spell checker for a language other than English on Mac #120

Open avner-hoffmann opened 6 years ago

avner-hoffmann commented 6 years ago

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:

  1. window.spellCheckHandler.switchLanguage('he-IL');
  2. window.spellCheckHandler.loadDictionaryForLanguageWithAlternatives('he-IL');
  3. 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!

ynaftali-vonage-zz commented 6 years ago

@paulcbetts @felixrieseberg @CharlieHess @kwonoj @blaatunga @danmckeon @dudeofawesome Can you help us here? Please 😊

tomaskavalek commented 5 years ago

Any news please? I have same issue.

saenzramiro commented 5 years ago

Same here!