From 1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a Mon Sep 17 00:00:00 2001 From: Raymond Zhao <7199958+rzhao271@users.noreply.github.com> Date: Wed, 14 Dec 2022 02:05:52 -0800 Subject: [PATCH] Fix terminal locale handling (#169072) Switch back to using app.getLocale() --- src/main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index f8dd756c3142f..87215451c81bd 100644 --- a/src/main.js +++ b/src/main.js @@ -580,11 +580,11 @@ async function resolveNlsConfiguration() { // VS Code moves to Electron 22. // Ref https://github.com/microsoft/vscode/issues/159813 // and https://github.com/electron/electron/pull/36035 - if ('getPreferredSystemLanguages' in app - && typeof app.getPreferredSystemLanguages === 'function' - && app.getPreferredSystemLanguages().length) { - appLocale = app.getPreferredSystemLanguages()[0]; - } + // if ('getPreferredSystemLanguages' in app + // && typeof app.getPreferredSystemLanguages === 'function' + // && app.getPreferredSystemLanguages().length) { + // appLocale = app.getPreferredSystemLanguages()[0]; + // } if (!appLocale) { nlsConfiguration = { locale: 'en', availableLanguages: {} }; } else {