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
changed the title [-]Languague display not working in Version 3.10.0 of Code-Server[/-][+]Can't change display language in code-server v3.10.0[/+]on May 12, 2021
@jsjoeio, Yes I can confirm that I install the language pack. Currently I install the Spanish Language package directly with a command in my Dockerfile.
What happens in the previous versions of code-server is that when entering for the first time it already opened the Spanish language by default.
I just tried uninstalling and installing the package again, restarted the window and changed the language.
In the same way, I would like the language to be preloaded as before, so that if the Docker container falls, it takes the language configuration at once.
I am attaching the docker docker command I use in the Dockerfile:
RUN code-server --extensions-dir ~/.local/share/code-server/extensions/ --install-extension ms-ceintl.vscode-language-pack-es
Ah okay, thank you for all the details. So here's a screenshot of my running that command locally (not using Docker):
Hmm...now this is interesting... When I look inside /Users/jp/.local/share/code-server/User, I see an argsv.json and argv.json 🤔
I'll keep both and restart code-server.
It's in Spanish, as expected.
According to VS Code's docs, argv.json is the expected filename to keep the locale.
Let's delete the argsv.json, restart code-server and see what happens. Still in Spanish so that wasn't an issue. (probably a typo from me)
Well, I'm a bit stumped. It feels like this is specific to how code-server is loading/running in your Docker environment. Maybe @code-asher has some insight.
changed the title [-]Can't change display language in code-server v3.10.0[/-][+]Display language doesn't persist in code-server v3.10.0 running in Docker container[/+]on May 13, 2021
Strangely, I don't get the option to select es from the command palette either even though the extension is installed.
If I uninstall the extension and re-install then refresh everything works.
I think there is some language bundle generation that happens somewhere that isn't running when doing things in the CLI but is running when doing things through the UI.
I tried this with desktop VS Code (--install-extension, edit argv.json, then launch) and it did not change my language so this seems to be an upstream issue.
Strangely, I don't get the option to select es from the command palette either even though the extension is installed.
If I uninstall the extension and re-install then refresh everything works.
I think there is some language bundle generation that happens somewhere that isn't running when doing things in the CLI but is running when doing things through the UI.
Strangely, I don't get the option to select es from the command palette either even though the extension is installed.
If I uninstall the extension and re-install then refresh everything works.
I think there is some language bundle generation that happens somewhere that isn't running when doing things in the CLI but is running when doing things through the UI.
Thank you for your suggestion! Based on your idea, I wrote a Bash script to automatically generate the languagepacks.json file.
You can check it here:
With this setup, the languagepacks.json file will be automatically generated after installing a single language pack, making it easier to switch languages.
Activity
[-]Languague display not working in Version 3.10.0 of Code-Server[/-][+]Can't change display language in code-server v3.10.0[/+]jsjoeio commentedon May 12, 2021
I was able to successfully reproduce this on macOS + Chrome and code-server 3.10.0
jsjoeio commentedon May 12, 2021
However, you can change the display language if you do the following:
Screenshot
And, if you restart code-server the language pack is installed and we set the locale in
argsv.json
so it persists!@aleleba can you please double-check that you have the language pack extension installed?
aleleba commentedon May 13, 2021
@jsjoeio, Yes I can confirm that I install the language pack. Currently I install the Spanish Language package directly with a command in my Dockerfile.
What happens in the previous versions of code-server is that when entering for the first time it already opened the Spanish language by default.
I just tried uninstalling and installing the package again, restarted the window and changed the language.
In the same way, I would like the language to be preloaded as before, so that if the Docker container falls, it takes the language configuration at once.
I am attaching the docker docker command I use in the Dockerfile:
I really appreciate the follow-up and the help.
jsjoeio commentedon May 13, 2021
Ah okay, thank you for all the details. So here's a screenshot of my running that command locally (not using Docker):

Hmm...now this is interesting... When I look inside
/Users/jp/.local/share/code-server/User
, I see anargsv.json
andargv.json
🤔I'll keep both and restart code-server.
It's in Spanish, as expected.

According to VS Code's docs,
argv.json
is the expected filename to keep the locale.Let's delete the
argsv.json
, restart code-server and see what happens. Still in Spanish so that wasn't an issue. (probably a typo from me)Well, I'm a bit stumped. It feels like this is specific to how code-server is loading/running in your Docker environment. Maybe @code-asher has some insight.
[-]Can't change display language in code-server v3.10.0[/-][+]Display language doesn't persist in code-server v3.10.0 running in Docker container[/+]aleleba commentedon May 13, 2021
@jsjoeio, @code-asher, I started to see the changes from version 3.9.3 to version 3.10.0, to see if I can help to find the error and I could observe this change: https://github.com/cdr/code-server/pull/3250/files
I think instead of placing:
You have to place:
To stand in a line.
I don't use yarn and gulp, and I'm not an expert in bash, so I don't really know if that is the case.
I hope to help a little
jsjoeio commentedon May 13, 2021
Maybe @oxy might have some insight too.
code-asher commentedon May 13, 2021
I was able to replicate with:
Strangely, I don't get the option to select
es
from the command palette either even though the extension is installed.If I uninstall the extension and re-install then refresh everything works.
I think there is some language bundle generation that happens somewhere that isn't running when doing things in the CLI but is running when doing things through the UI.
20 remaining items
alanhe421 commentedon Oct 14, 2022
which old version is ok? Or was it an existing BUG all along?
jsjoeio commentedon Oct 14, 2022
I'm not sure 🤔 @code-asher might know if it previously worked
code-asher commentedon Oct 19, 2022
I think it never worked.
aleleba commentedon Dec 14, 2022
Can we make some following up @code-asher ? , If you need any help, it should be a pleasure to help.
jsjoeio commentedon Dec 14, 2022
@aleleba can you try reproducing this with the latest version of code-server?
aleleba commentedon Dec 14, 2022
Yes@jsjoeio, I already try and the behavior is the same.
jsjoeio commentedon Dec 14, 2022
Thank you! If you want to dig in, I'd start here: #3372 (comment)
code-asher commentedon Dec 19, 2022
I tried this with desktop VS Code (
--install-extension
, editargv.json
, then launch) and it did not change my language so this seems to be an upstream issue.repo-ranger commentedon Dec 19, 2022
This issue has been marked as 'upstream:vscode'. Please file this upstream: link to open issue
This issue will automatically close in 5 seconds.
repo-ranger commentedon Dec 19, 2022
This issue has been marked as 'upstream:vscode'. Please file this upstream: link to open issue
This issue will automatically close in 5 seconds.
Anyexyz commentedon Apr 20, 2025
Thank you for your suggestion! Based on your idea, I wrote a Bash script to automatically generate the
languagepacks.json
file.You can check it here:
With this setup, the
languagepacks.json
file will be automatically generated after installing a single language pack, making it easier to switch languages.