Implement IPC call to Electron to set language
This commit is contained in:
parent
947c913d1c
commit
f5c2d51f1e
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue