Created
March 11, 2021 03:04
-
-
Save savannidgerinel/997949efadf18279b761c412fb5b9e4f to your computer and use it in GitHub Desktop.
Electron locales, showing that electron does not allow "eo" through to the app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ locale | |
LANG=eo.UTF-8 | |
LC_CTYPE="eo.UTF-8" | |
LC_NUMERIC="eo.UTF-8" | |
LC_TIME="eo.UTF-8" | |
LC_COLLATE="eo.UTF-8" | |
LC_MONETARY="eo.UTF-8" | |
LC_MESSAGES="eo.UTF-8" | |
LC_PAPER="eo.UTF-8" | |
LC_NAME="eo.UTF-8" | |
LC_ADDRESS="eo.UTF-8" | |
LC_TELEPHONE="eo.UTF-8" | |
LC_MEASUREMENT="eo.UTF-8" | |
LC_IDENTIFICATION="eo.UTF-8" | |
LC_ALL=eo.UTF-8 | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ npm start | |
> [email protected] start /home/savanni/src/electron-app | |
> electron . | |
LOCALE: en-US | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ export LANG=de-DE | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ export LC_ALL=de_DE | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ locale | |
LANG=de-DE | |
LC_CTYPE="de_DE" | |
LC_NUMERIC="de_DE" | |
LC_TIME="de_DE" | |
LC_COLLATE="de_DE" | |
LC_MONETARY="de_DE" | |
LC_MESSAGES="de_DE" | |
LC_PAPER="de_DE" | |
LC_NAME="de_DE" | |
LC_ADDRESS="de_DE" | |
LC_TELEPHONE="de_DE" | |
LC_MEASUREMENT="de_DE" | |
LC_IDENTIFICATION="de_DE" | |
LC_ALL=de_DE | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ npm start | |
> [email protected] start /home/savanni/src/electron-app | |
> electron . | |
LOCALE: de | |
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app } = require('electron') | |
app.whenReady().then(() => { | |
console.log('LOCALE: ', app.getLocale()) | |
app.quit() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "electron-app", | |
"version": "1.0.0", | |
"description": "", | |
"main": "main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"electron": "^12.0.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment