forked from matrix/element-web
Merge pull request #12487 from vector-im/t3chguy/spellcheck
Notify electron of language changes
This commit is contained in:
commit
cf52ccad67
|
@ -385,4 +385,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||
getEventIndexingManager(): BaseEventIndexManager | null {
|
||||
return this.eventIndexManager;
|
||||
}
|
||||
|
||||
setLanguage(preferredLangs: string[]) {
|
||||
this._ipcCall('setLanguage', preferredLangs).catch(error => {
|
||||
console.log("Failed to send setLanguage IPC to Electron");
|
||||
console.error(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue