Browse Source

Implement IPC call to Electron to set language

pull/17052/head
Germain Souquet 1 year ago
parent
commit
f5c2d51f1e
  1. 4
      src/vector/platform/ElectronPlatform.tsx

4
src/vector/platform/ElectronPlatform.tsx

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