mirror of
https://github.com/electron/electron.git
synced 2026-01-29 17:28:18 -05:00
* 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
11 lines
169 B
JavaScript
11 lines
169 B
JavaScript
const {app} = require('electron')
|
|
|
|
app.on('ready', () => {
|
|
process.stdout.write(app.getLocale())
|
|
process.stdout.end()
|
|
|
|
setImmediate(() => {
|
|
app.quit()
|
|
})
|
|
})
|