You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Desktop: Auto-detect locale on startup
This commit is contained in:
@@ -139,7 +139,7 @@ function shimInit(options = null) {
|
||||
};
|
||||
|
||||
shim.detectAndSetLocale = function(Setting) {
|
||||
let locale = process.env.LANG;
|
||||
let locale = shim.isElectron() ? shim.electronBridge().getLocale() : process.env.LANG;
|
||||
if (!locale) locale = defaultLocale();
|
||||
locale = locale.split('.');
|
||||
locale = locale[0];
|
||||
|
||||
Reference in New Issue
Block a user