Implement IPC call to Electron to set language

This commit is contained in:
Germain Souquet 2021-04-23 17:14:40 +01:00
parent 947c913d1c
commit f5c2d51f1e

View file

@ -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");