Added setSpellCheckLanguages() method
This commit is contained in:
parent
557e650a2c
commit
43daec03e2
1 changed files with 7 additions and 0 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue