electron/spec/fixtures/api/locale-check/main.js
shelley vohr ca34978e73 add app.setLocale() (#11469)
* infrastructure for setLocale via klang

* add documentation for setLocale

* add test for setLocale

* fix spec

* add spec and update docs

* fix carriage feeds on windows

* SetLocale() sets LC_ALL on Linux

* in SetLocale() on Linux, use g_setenv()

* fix tyop: '#ifdef OSX_POSIX'

* make the linter happy

* improvements from review
2018-02-08 08:26:37 -06:00

10 lines
169 B
JavaScript

const {app} = require('electron')
app.on('ready', () => {
process.stdout.write(app.getLocale())
process.stdout.end()
setImmediate(() => {
app.quit()
})
})