feat: use LANGUAGE flag to change UI lang

needs more testing
pull/2796/head
William Grant 2 years ago
parent 7542a42fa6
commit 31c79f9eea

@ -745,8 +745,9 @@ app.on('ready', async () => {
assertLogger().info('app ready');
assertLogger().info(`starting version ${packageJson.version}`);
if (!locale) {
const appLocale = app.getLocale() || 'en';
const appLocale = process.env.LANGUAGE || app.getLocale() || 'en';
locale = loadLocale({ appLocale, logger });
assertLogger().info(`locale is ${appLocale}`);
}
const key = getDefaultSQLKey();

Loading…
Cancel
Save