Added setSpellCheckLanguages() method

pull/21833/head
Šimon Brandner 2020-11-28 19:38:52 +01:00
parent 557e650a2c
commit 43daec03e2
1 changed files with 7 additions and 0 deletions

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 = [];