1
0
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:
Laurent Cozic
2023-05-10 11:05:55 +01:00
parent 5371c97ccd
commit 052a829167
6 changed files with 27 additions and 8 deletions

View File

@@ -840,13 +840,8 @@ export default class BaseApplication {
}
if (Setting.value('firstStart')) {
// If it's a sub-profile, the locale must come from the root
// profile.
if (!Setting.value('isSubProfile')) {
const locale = shim.detectAndSetLocale(Setting);
reg.logger().info(`First start: detected locale as ${locale}`);
}
const locale = shim.detectAndSetLocale(Setting);
reg.logger().info(`First start: detected locale as ${locale}`);
Setting.skipDefaultMigrations();
if (Setting.value('env') === 'dev') {