code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Cannot change the display language by installing the language pack extension via cli

Open hwdef opened this issue 4 years ago • 4 comments

OS/Web Information

  • Web Browser: firefox/edge
  • Local OS: windows10
  • Remote OS: centos7
  • Remote Architecture: amd64
  • code-server --version: 4.0.1 735c6da829535969ff7193c79379299e4a1cb9bc

Steps to Reproduce

  1. download language extension (https://marketplace.visualstudio.com/items?itemName=MS-CEINTL.vscode-language-pack-zh-hans)
  2. install it code-server --install-extension MS-CEINTL.vscode-language-pack-zh-hans-1.63.3.vsix
  3. start code-server

Expected

Display language changed to Chinese

Actual

nothing happens, even if I enter Configure Display Language through the command panel, there is no Chinese option

image

If I install this language extension online, a prompt will pop up in the lower right corner of the browser, asking if I want to change the display language, but there is no prompt after installing the extension offline

image

Logs

Screenshot

image

image

Notes

This issue can be reproduced in VS Code: Yes/No

hwdef avatar Jan 13 '22 02:01 hwdef

Hmmm..when I download from OpenVSX, it says not compatible. I think you need to install this version: https://open-vsx.org/extension/MS-CEINTL/vscode-language-pack-zh-hans/1.63.3

However, if I search for it within code-server and click install, it installs and restarts in Chinese.

Video

https://user-images.githubusercontent.com/3806031/149587207-f3275af5-df31-4dcb-9933-ef3d1baa7880.mov

With CLI

I tried again with 1.63.3 and see the same issue that you're describing. It seems like there could be an issue with the way extensions are installed via the CLI vs the UI 🤔

Possibly related to https://github.com/coder/code-server/issues/4749

cc @code-asher

Workaround

For now, the workaround is to install it while online via the UI

jsjoeio avatar Jan 14 '22 21:01 jsjoeio

Ah yeah I think it is the same issue here: https://github.com/coder/code-server/issues/3372#issuecomment-840859442

code-asher avatar Jan 19 '22 17:01 code-asher

Ah yeah I think it is the same issue here: #3372 (comment)

Do you know if there is any workaround for this? Seems the latest version of VSCode still has this issue

ParticleG avatar Apr 11 '25 19:04 ParticleG

I think the only real workaround is to install the language pack via the UI unfortunately. I suppose one could copy the generated directory and use that to seed new installs though. Maybe keep it as part of a base image or something.

code-asher avatar Apr 14 '25 18:04 code-asher