Added setSpellCheckLanguages() method

This commit is contained in:
Šimon Brandner 2020-11-28 19:38:52 +01:00
parent 557e650a2c
commit 43daec03e2

View file

@ -346,6 +346,13 @@ export function setLanguage(preferredLangs: string | string[]) {
});
}
export function setSpellCheckLanguages(preferredLangs: string[]) {
const plaf = PlatformPeg.get();
if (plaf) {
plaf.setLanguage(preferredLangs);
}
}
export function getAllLanguagesFromJson() {
return getLangsJson().then((langsObject) => {
const langs = [];