mirror of https://github.com/vector-im/riot-web
Merge pull request #12487 from vector-im/t3chguy/spellcheck
Notify electron of language changespull/12519/head
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