Skip to content

Commit 1ad8d51

Browse files
authored
Fix terminal locale handling (microsoft#169072)
Switch back to using app.getLocale()
1 parent baea24b commit 1ad8d51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,11 @@ async function resolveNlsConfiguration() {
580580
// VS Code moves to Electron 22.
581581
// Ref https://github.com/microsoft/vscode/issues/159813
582582
// and https://github.com/electron/electron/pull/36035
583-
if ('getPreferredSystemLanguages' in app
584-
&& typeof app.getPreferredSystemLanguages === 'function'
585-
&& app.getPreferredSystemLanguages().length) {
586-
appLocale = app.getPreferredSystemLanguages()[0];
587-
}
583+
// if ('getPreferredSystemLanguages' in app
584+
// && typeof app.getPreferredSystemLanguages === 'function'
585+
// && app.getPreferredSystemLanguages().length) {
586+
// appLocale = app.getPreferredSystemLanguages()[0];
587+
// }
588588
if (!appLocale) {
589589
nlsConfiguration = { locale: 'en', availableLanguages: {} };
590590
} else {

0 commit comments

Comments
 (0)