diff options
Diffstat (limited to 'src/webview/spellchecker.ts')
-rw-r--r-- | src/webview/spellchecker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/spellchecker.ts b/src/webview/spellchecker.ts index 30b4ef075..d0f6663d5 100644 --- a/src/webview/spellchecker.ts +++ b/src/webview/spellchecker.ts | |||
@@ -11,7 +11,7 @@ debug('Spellchecker default locale is', defaultLocale); | |||
11 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier: string) { | 11 | export function getSpellcheckerLocaleByFuzzyIdentifier(identifier: string) { |
12 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter((key) => key.toLocaleLowerCase() === identifier.toLowerCase() || key.split('-')[0] === identifier.toLowerCase()); | 12 | const locales = Object.keys(SPELLCHECKER_LOCALES).filter((key) => key.toLocaleLowerCase() === identifier.toLowerCase() || key.split('-')[0] === identifier.toLowerCase()); |
13 | 13 | ||
14 | return locales.length >= 1 ? locales[0] : null; | 14 | return locales.length > 0 ? locales[0] : null; |
15 | } | 15 | } |
16 | 16 | ||
17 | export function switchDict(locale: string) { | 17 | export function switchDict(locale: string) { |