From 31c79f9eeabe885008384b1897eda6ec95a540d6 Mon Sep 17 00:00:00 2001 From: William Grant Date: Mon, 26 Jun 2023 17:30:52 +1000 Subject: [PATCH] feat: use LANGUAGE flag to change UI lang needs more testing --- ts/mains/main_node.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/mains/main_node.ts b/ts/mains/main_node.ts index c19373d52..3956cd127 100644 --- a/ts/mains/main_node.ts +++ b/ts/mains/main_node.ts @@ -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();