Added getAvailableSpellCheckLanguages() methods
This commit is contained in:
parent
ead00dcded
commit
38080c5b2b
2 changed files with 9 additions and 0 deletions
|
@ -237,6 +237,10 @@ export default abstract class BasePlatform {
|
||||||
|
|
||||||
setLanguage(preferredLangs: string[]) {}
|
setLanguage(preferredLangs: string[]) {}
|
||||||
|
|
||||||
|
getAvailableSpellCheckLanguages(): Promise<string[]> | null {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
protected getSSOCallbackUrl(fragmentAfterLogin: string): URL {
|
protected getSSOCallbackUrl(fragmentAfterLogin: string): URL {
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
url.hash = fragmentAfterLogin || "";
|
url.hash = fragmentAfterLogin || "";
|
||||||
|
|
|
@ -353,6 +353,11 @@ export function setSpellCheckLanguages(preferredLangs: string[]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getAvailableSpellCheckLanguages(): Promise<string[]> {
|
||||||
|
const plaf = PlatformPeg.get();
|
||||||
|
return plaf.getAvailableSpellCheckLanguages();
|
||||||
|
}
|
||||||
|
|
||||||
export function getAllLanguagesFromJson() {
|
export function getAllLanguagesFromJson() {
|
||||||
return getLangsJson().then((langsObject) => {
|
return getLangsJson().then((langsObject) => {
|
||||||
const langs = [];
|
const langs = [];
|
||||||
|
|
Loading…
Reference in a new issue