You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Electron now receives the application locale so that it can display the window controls overlay component properly on Windows and macOS. At the same time, I added in a new API to Electron that VS Code calls from main.js, so that the language pack recommender can continue to recommend language packs even with the Electron change.
For the instructions below, French (fr) can be replaced with another language that we have a language pack for that is not pseudolanguage (qps-ploc). Therefore, instead of French, one can use a language like Spanish (es) or Simplified Chinese (zh-cn).
Scenario 1: Locale unset
Run the "Preferences: Configure Runtime Arguments" command to open argv.json.
Make sure there is no "locale" key-value pair set.
Make sure the French language pack is not installed.
Switch the system language to French. On Windows, change French to be the first preferred language instead (which differs from the system language).
Close VS code completely and open it again.
On macOS, VS Code should be in French. On Linux and Windows, there should be a notification alerting users that they can install and change the application language to French.
Accept the notification.
Run the "Preferences: Configure Runtime Arguments" command to open argv.json.
The "locale" key should have "fr" as the value.
Scenario 2: Locale set to non-English language
Run the "Preferences: Configure Runtime Arguments" command to open argv.json.
Set the locale to "fr"
Make sure the French language pack is not installed.
Switch the system language to English. On Windows, change English to be the first preferred language instead (which differs from the system language).
Close VS code completely and open it again.
On macOS, VS Code should be in French. On Linux and Windows, there should be a notification alerting users that they can install and change the application language to French.
Scenario 3: Locale set to English
Run the "Preferences: Configure Runtime Arguments" command to open argv.json.
Set the locale to "en"
Make sure the French language pack is not installed.
Switch the system language to French. On Windows, change French to be the first preferred language instead (which differs from the system language).
Close VS code completely and open it again.
On macOS, VS Code should be in English. On Linux and Windows, VS Code should be in English. No language pack recommendation notification should appear.
Scenario 4: Locale overridden by command-line flag
Run the "Preferences: Configure Runtime Arguments" command to open argv.json.
Set the locale to "zh-cn" and the system language to English. On Windows, change English to be the first preferred language instead (which differs from the system language).
Make sure the French language pack is not installed.
Close VS code completely and open it from the command line using the flag --locale=fr.
On macOS, VS Code should be in French. On Linux and Windows, there should be a notification alerting users that they can install and change the application language to French.
Scenario 5: Pseudolanguage and RTL system languages
Switch the system language to a right-to-left language like Arabic. On Windows, change the first preferred language instead (which differs from the system language).
If you're on Windows, ensure the window controls overlay setting is enabled.
Change the display language to pseudolanguage (qps-ploc).
Close VS code completely and open it again.
VS Code should be in pseudolanguage. On macOS, the traffic lights should still be on the left side. On Windows, the window controls overlay should still be on the right side. On Linux, the close button should be on the same side as it was in the previous scenarios.
The text was updated successfully, but these errors were encountered:
Refs: #161218
Complexity: 5
Authors: @rzhao271, @TylerLeonhardt
Create Issue
Electron now receives the application locale so that it can display the window controls overlay component properly on Windows and macOS. At the same time, I added in a new API to Electron that VS Code calls from
main.js
, so that the language pack recommender can continue to recommend language packs even with the Electron change.For the instructions below, French (fr) can be replaced with another language that we have a language pack for that is not pseudolanguage (qps-ploc). Therefore, instead of French, one can use a language like Spanish (es) or Simplified Chinese (zh-cn).
Scenario 1: Locale unset
argv.json
.argv.json
.Scenario 2: Locale set to non-English language
argv.json
.Scenario 3: Locale set to English
argv.json
.Scenario 4: Locale overridden by command-line flag
argv.json
.--locale=fr
.Scenario 5: Pseudolanguage and RTL system languages
The text was updated successfully, but these errors were encountered: