mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
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