diff options
Diffstat (limited to 'electron/src/lib/i18n.js')
| -rw-r--r-- | electron/src/lib/i18n.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/electron/src/lib/i18n.js b/electron/src/lib/i18n.js new file mode 100644 index 00000000..886fd654 --- /dev/null +++ b/electron/src/lib/i18n.js @@ -0,0 +1,9 @@ +module.exports.selectLanguage = function () { + ['LANGUAGE', 'LC_ALL', 'LC_MESSAGES', 'LANG'].forEach(language => { + if (process.env[language]) { + return process.env[language].split(":")[0] + } + }) + + return "en_US" +} |
