mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Added getAvailableSpellCheckLanguages() methods
This commit is contained in:
parent
ead00dcded
commit
38080c5b2b
@ -237,6 +237,10 @@ export default abstract class BasePlatform {
|
||||
|
||||
setLanguage(preferredLangs: string[]) {}
|
||||
|
||||
getAvailableSpellCheckLanguages(): Promise<string[]> | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected getSSOCallbackUrl(fragmentAfterLogin: string): URL {
|
||||
const url = new URL(window.location.href);
|
||||
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() {
|
||||
return getLangsJson().then((langsObject) => {
|
||||
const langs = [];
|
||||
|
Loading…
Reference in New Issue
Block a user