mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(language): default to english if language doesn't exist
This commit is contained in:
parent
bdbeb31049
commit
e18a272803
1 changed files with 2 additions and 1 deletions
|
@ -217,7 +217,8 @@ class NylasEnvConstructor extends Model
|
|||
!(require('spellchecker').isMisspelled(text))
|
||||
})
|
||||
spellchecker = require('spellchecker')
|
||||
spellchecker.setDictionary(navigator.language)
|
||||
lang = navigator.language ? "en-US"
|
||||
spellchecker.setDictionary(lang)
|
||||
|
||||
@subscribe @packages.onDidActivateInitialPackages => @watchThemes()
|
||||
@windowEventHandler = new WindowEventHandler
|
||||
|
|
Loading…
Reference in a new issue