aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-09 23:42:01 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-09 23:42:01 +0530
commit39f6c7a4c96e9704671769750823dea4a40093a2 (patch)
treeb515fc605e7de994cda69e7a94f43315e24c6cd8 /src/webview
parentchore: i18n translations (diff)
downloadferdium-app-39f6c7a4c96e9704671769750823dea4a40093a2.tar.gz
ferdium-app-39f6c7a4c96e9704671769750823dea4a40093a2.tar.zst
ferdium-app-39f6c7a4c96e9704671769750823dea4a40093a2.zip
chore: set default fallback locale for spell-checker to be 'en-US'.
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/spellchecker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/spellchecker.js b/src/webview/spellchecker.js
index b59319495..0f4715207 100644
--- a/src/webview/spellchecker.js
+++ b/src/webview/spellchecker.js
@@ -1,6 +1,6 @@
1import { getCurrentWebContents } from '@electron/remote'; 1import { getCurrentWebContents } from '@electron/remote';
2import { SPELLCHECKER_LOCALES } from '../i18n/languages'; 2import { SPELLCHECKER_LOCALES } from '../i18n/languages';
3import { isMac } from '../environment'; 3import { DEFAULT_APP_SETTINGS, isMac } from '../environment';
4 4
5const debug = require('debug')('Ferdi:spellchecker'); 5const debug = require('debug')('Ferdi:spellchecker');
6 6
@@ -33,7 +33,7 @@ export function switchDict(locale) {
33 locales.push(foundLocale); 33 locales.push(foundLocale);
34 } 34 }
35 35
36 locales.push(defaultLocale, 'de'); 36 locales.push(defaultLocale, DEFAULT_APP_SETTINGS.fallbackLocale);
37 37
38 webContents.session.setSpellCheckerLanguages(locales); 38 webContents.session.setSpellCheckerLanguages(locales);
39} 39}