From 7bdd0a0a97d6f83588785e0ac39d42fa91c87860 Mon Sep 17 00:00:00 2001 From: mxb Date: Thu, 18 Apr 2019 10:05:53 +0200 Subject: [PATCH] Allow to send accept language header to websites, according to settings --- electron/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electron/main.js b/electron/main.js index d1722b57..18a57087 100644 --- a/electron/main.js +++ b/electron/main.js @@ -58,6 +58,8 @@ if (config.get('enable_hidpi_support') && (process.platform === 'win32')) { app.commandLine.appendSwitch('force-device-scale-factor', '1') } +app.commandLine.appendSwitch('lang', config.get('locale') === 'en' ? 'en-US' : config.get('locale')) + // Because we build it using Squirrel, it will assign UserModelId automatically, so we match it here to display notifications correctly. // https://github.com/electron-userland/electron-builder/issues/362 app.setAppUserModelId('com.grupovrs.ramboxce');