mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Implement IPC call to Electron to set language
This commit is contained in:
parent
947c913d1c
commit
f5c2d51f1e
@ -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 New Issue
Block a user