diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webview/spellchecker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js index c711382be..9158b3b94 100644 --- a/src/webview/spellchecker.js +++ b/src/webview/spellchecker.js | |||
@@ -85,7 +85,7 @@ export function disable() { | |||
85 | } | 85 | } |
86 | 86 | ||
87 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier) { | 87 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier) { |
88 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter(key => key.split('-')[0] === identifier); | 88 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter(key => key === identifier.toLowerCase() || key.split('-')[0] === identifier.toLowerCase()); |
89 | 89 | ||
90 | if (locales.length >= 1) { | 90 | if (locales.length >= 1) { |
91 | return locales[0]; | 91 | return locales[0]; |