Add Swedish sv-SE (already in simple-spellchecker) (#1483)

* Add Swedish sv-SE (already in simple-spellchecker)

* Remove spaces in empty lines

* Add some sv-SE test for spellchecker

Co-authored-by: Peter Johansson <peter.johansson@havochvatten.se>
This commit is contained in:
petermcj
2021-02-25 22:18:24 +01:00
committed by GitHub
parent 4a72948baa
commit 9551d6628c
3 changed files with 27 additions and 0 deletions

View File

@@ -119,6 +119,9 @@ SpellChecker.getSpellCheckerLocale = (electronLocale) => {
if (electronLocale.match(/^ru-?/)) {
return 'ru-RU';
}
if (electronLocale.match(/^sv-?/)) {
return 'sv-SE';
}
if (electronLocale.match(/^uk-?/)) {
return 'uk-UA';
}