Merge locale-provided strings into english for failover support

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-08-17 10:52:59 -07:00
parent 270f626cd7
commit 5099ca0ccd
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 9 additions and 1 deletions

View file

@ -57,6 +57,8 @@
}
}
// We load locale this way and not via app.getLocale() because this call returns
// 'es_ES' and not just 'es.' And hunspell requires the fully-qualified locale.
var locale = osLocale.sync().replace('-', '_');
// The LANG environment variable is how node spellchecker finds its default language: