Skip to content

Default to LANG setting for locale #3173

Closed
@jawnsy

Description

@jawnsy

@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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew user visible feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions