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

[Bug]: The built-in language plug-in is invalid

Open dingzhou-beck opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS/Web Information

  • Web Browser: firefox
  • Local OS: Ubuntu20.04
  • Remote OS: Ubuntu20.04
  • Remote Architecture: amd64
  • code-server --version: V4.19.1

Steps to Reproduce

  1. Compile code-server v4.19.1 as an image;
  2. run the docker run -d name code-server -e PASSWORD=111111 [image-id] command; 3.Access the browser.

Expected

I packed the plugin Language pack extension for Chinese (Simplified) into it, but did not get the zh-cn option throughConfigure Display Language. 1708929150941

This seems strange, but when I installed other language packs in the plugin market, the zh-cn option appeared. 1708929250502

Actual

How do I change the default language option to zh-cn with the built-in plugin?

In addition, when I switch the language to zh-cn, the current language in the configuration is still en, which is just a display problem and does not affect the user's use.

1708930467096

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • [X] I tested this in native VS Code.
  • [X] This does not happen in native VS Code.
  • [ ] I tested this in GitHub Codespaces.
  • [ ] This does not happen in GitHub Codespaces.

Are you accessing code-server over a secure context?

  • [ ] I am using a secure context.

Notes

This problem does not occur by manually installing the language pack.

dingzhou-beck avatar Feb 26 '24 07:02 dingzhou-beck

I think this is a duplicate of https://github.com/coder/code-server/issues/4735

Basically, when a language pack is installed, VS Code generates a language bundle, but unfortunately there is a bug and this only happens when you install from the UI.

We do patch language stuff here in code-server, so I am not sure if this is our bug or something upstream. More investigation will be required.

code-asher avatar Feb 26 '24 22:02 code-asher

Thank you very much for answering my question.

dingzhou-beck avatar Feb 27 '24 01:02 dingzhou-beck