Browse Source

Merge pull request #12487 from vector-im/t3chguy/spellcheck

Notify electron of language changes
pull/12519/head
Michael Telatynski 2 years ago
committed by GitHub
parent
commit
cf52ccad67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/vector/platform/ElectronPlatform.js

7
src/vector/platform/ElectronPlatform.js

@ -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…
Cancel
Save