vs code python uses system language, not vs code display language
See original GitHub issueEnvironment data
- VS Code version: 1.28.2
- Extension version: 2018.10.1
- OS and version: MacOS High Sierra 10.13.6
- Python version: 3.7.0
- Type of virtual environment used: virtualenv
- Relevant/affected Python packages and their versions: none
Actual behavior
VS Code python extension uses system language in stead of vs code language settings. System language is german, vs code display language is english. vs-code-python language (in command palette) is german.
Expected behavior
VS Code python extension honors the configuration of VS Code and language is the same throughout VS Code. So, vs-code-python language should be english, as stated in vs code display language.
Steps to reproduce:
- switch mac os to some different language than english (german in my case, this was my macs default)
- install vs code & vs code python settings
- change vs code Display language to english
- type “> python” into command palette
Pythons command palette(All german except the Jupyter cell commands): Language settings of MacOS
Output of locale on the terminal:
$ locale
LANG="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_CTYPE="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_ALL=
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Visual Studio Code Display Language (Locale)
Display Language. Visual Studio Code ships by default with English as the display language and other languages rely on Language Pack extensions available ......
Read more >How to change UI language in Visual Studio Code?
Open VScode; Press F1 and type 'display'; Choose 'Configure display language'; Select your language. On top are installed languages, ...
Read more >Advanced Visual Studio Code for Python Developers
You can use VS Code as a lightweight code editor to make quick changes, or you can configure it as an integrated development...
Read more >Getting started with VS Code for Python: Setting up a ...
Visual Studio Code is not to be confused with Visual Studio, ... To change the language mode for the active file, simply press...
Read more >Visual Studio Code - Wikipedia
Visual Studio Code, also commonly referred to as VS Code, is a source-code editor made by Microsoft with the Electron Framework, for Windows, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the exact same problem, but with the extension displaying Python’s commands ( in command palette ) in French rather than in English.
VS Code version: 1.28.2 Extension version: 2018.10.1 OS and version: Ubuntu 18.04 Python version: 3.6 Type of virtual environment used: none Relevant/affected Python packages and their versions: none
Here’s how I fixed the issue :
"locale.json"
file ( Command Palette > Configure Display Language )"locale":"en"
to"locale":"fr"
, and save."locale.json"
file."locale":"en"
, and save.Now the extension’s commands ( in command palette ) should be in English !
Reinstalling python extension fixed the issue. Not sure if/how the malfunctioning state can be reached again.