Description
@oxy explained how code-server's localizations work:
FWIW on code-server's side we have localizations working; all that's needed is F1 -> Configure Display Language -> Install additional languages -> selecting from extensions for manual changes.
This could be something that can be automated on the enterprise side by
code-server --install-extension ms-ceintl.vscode-language-pack-fr
and then writing{"locale": "fr"}
to~/.local/share/code-server/User/argv.json
- though I haven't touched any of the enterprise code so I don't know how possible that would be(replace
fr
with two letter language code as applicable)
As an alternative to writing files, it would be nice if we can instead parse the LANG
environment variable (e.g. LANG=en_US.utf8
) and default to that. The existing behavior should still take priority as users may want to override the locale (e.g. a Spanish-speaking user that uses an English UI, but wants to use Spanish in their editor).