add LANG env variable (#354)

Fixes #346.
This commit is contained in:
Nathan Rajlich 2016-07-21 15:58:30 -07:00 committed by Guillermo Rauch
parent 0c3d25dd19
commit 4206f4e96f

View file

@ -1,3 +1,4 @@
const { app } = require('electron');
const { EventEmitter } = require('events');
const { exec } = require('child_process');
const defaultShell = require('default-shell');
@ -25,6 +26,7 @@ module.exports = class Session extends EventEmitter {
rows,
cwd,
env: Object.assign({}, process.env, {
LANG: app.getLocale(),
TERM: 'xterm-256color'
})
});