-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberIssue has been confirmed by VS Code Team memberelectronIssues and items related to ElectronIssues and items related to ElectronmacosIssues with VS Code on MAC/OS XIssues with VS Code on MAC/OS XupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)wont-fix
Description
I'm using MacBook with its system language set to en-GB. I launched VS Code (from the dock, not the terminal) and if I run:
Intl.DateTimeFormat().resolvedOptions().locale
in the Chrome dev tools console, I see this:
However, in an extension's activate function if I do this:
console.log(Intl.DateTimeFormat().resolvedOptions().locale);
Then I see this:
I need to get the system language in order to set the LANG
env variable for spawned processes because CocoaPods crashes if LANG
is not set to something-UTF-8, and there's no way to set it without a language part so I need to get at the system language.
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberIssue has been confirmed by VS Code Team memberelectronIssues and items related to ElectronIssues and items related to ElectronmacosIssues with VS Code on MAC/OS XIssues with VS Code on MAC/OS XupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)wont-fix
Type
Projects
Status
✔️ Done / Deferred