diff --git a/installer/win/Symphony-x64.aip b/installer/win/Symphony-x64.aip index 49beae9a..9eb07fb5 100644 --- a/installer/win/Symphony-x64.aip +++ b/installer/win/Symphony-x64.aip @@ -45,12 +45,21 @@ + + + + + + + + + @@ -58,32 +67,41 @@ + + + - + + + + - + + + + @@ -97,6 +115,7 @@ + @@ -111,6 +130,10 @@ + + + + @@ -126,6 +149,8 @@ + + @@ -141,6 +166,8 @@ + + @@ -162,7 +189,7 @@ - + @@ -442,3 +469,4 @@ + diff --git a/js/spellChecker/spellChecker.js b/js/spellChecker/spellChecker.js index 257de828..7af964f9 100644 --- a/js/spellChecker/spellChecker.js +++ b/js/spellChecker/spellChecker.js @@ -1,5 +1,6 @@ const { remote } = require('electron'); const { MenuItem } = remote; +const { isMac } = require('./../utils/misc'); const { SpellCheckHandler, ContextMenuListener, ContextMenuBuilder } = require('electron-spellchecker'); class SpellCheckHelper { @@ -14,6 +15,15 @@ class SpellCheckHelper { initializeSpellChecker() { this.spellCheckHandler.attachToInput(); + // This is only for window as in mac the + // language is switched w.r.t to the current system language. + // + // In windows we need to implement RxJS observable + // in order to switch language dynamically + if (!isMac) { + this.spellCheckHandler.switchLanguage('en-US'); + } + const contextMenuBuilder = new ContextMenuBuilder(this.spellCheckHandler, null, false, SpellCheckHelper.processMenu); this.contextMenuListener = new ContextMenuListener((info) => { contextMenuBuilder.showPopupMenu(info);