aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/spellchecker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/spellchecker.ts')
-rw-r--r--src/webview/spellchecker.ts2
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);
11export function getSpellcheckerLocaleByFuzzyIdentifier(identifier: string) { 11export 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
17export function switchDict(locale: string) { 17export function switchDict(locale: string) {