Added loadSpellCheckLanguages() method
parent
301ea6a5f3
commit
7ae86af7df
|
@ -115,6 +115,16 @@ export async function loadLanguage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function loadSpellCheckLanguages() {
|
||||||
|
const langs = SettingsStore.getValue("spell-check-languages", null, /*excludeDefault=*/true);
|
||||||
|
|
||||||
|
try {
|
||||||
|
await languageHandler.setSpellCheckLanguage(langs);
|
||||||
|
} catch (e) {
|
||||||
|
console.error("Unable to set spell-check language", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export async function loadSkin() {
|
export async function loadSkin() {
|
||||||
// Ensure the skin is the very first thing to load for the react-sdk. We don't even want to reference
|
// Ensure the skin is the very first thing to load for the react-sdk. We don't even want to reference
|
||||||
// the SDK until we have to in imports.
|
// the SDK until we have to in imports.
|
||||||
|
|
Loading…
Reference in New Issue