From f5c2d51f1e8c80c0c966ae52876b6b3281eae46f Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Fri, 23 Apr 2021 17:14:40 +0100 Subject: [PATCH] Implement IPC call to Electron to set language --- src/vector/platform/ElectronPlatform.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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");