Skip to content

Commit

Permalink
Append en locale as default command-line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Sep 2, 2022
1 parent 0fbf361 commit b66a86a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ function configureCommandlineSwitchesSync(cliArgs) {

// Locale
else if (argvKey === 'locale') {
if (argvValue) {
app.commandLine.appendSwitch('lang', argvValue);
}
// Pass in the locale to Electron so that the Windows Control Overlay
// is rendered correctly.
// Ref https://github.com/microsoft/vscode/issues/159813
app.commandLine.appendSwitch('lang', argvValue ?? 'en');
}

// Others
Expand Down

0 comments on commit b66a86a

Please sign in to comment.