diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 74317e77d..449ca7954 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -510,6 +510,10 @@ export default class ElectronPlatform extends VectorBasePlatform { return this.eventIndexManager; } + async setLanguage(language: string) { + return this._ipcCall('setLanguage', language); + } + setSpellCheckLanguages(preferredLangs: string[]) { this._ipcCall('setSpellCheckLanguages', preferredLangs).catch(error => { console.log("Failed to send setSpellCheckLanguages IPC to Electron");