Code-server: How to change display language?

Created on 12 Mar 2019  路  15Comments  路  Source: cdr/code-server

Description


How do I suppose to change the display language? I installed a new language pack, changed config, and reloaded, but nothing changed.

question

Most helpful comment

The same.
image
VSCode Language packs requires RESTART,not RELOAD.
I'm using docker and container recreating removes all the extensions&global config file.

All 15 comments

Enter Help=>Restart Container in menu bar that's also nothing changed after installing new language pack and change the corresponded locale.json file.

same question

The same.
image
VSCode Language packs requires RESTART,not RELOAD.
I'm using docker and container recreating removes all the extensions&global config file.

the same nothing changed

Changing display language doesn't work yet but it is currently high on the priority list for us

@masnn May I ask what's the path of locale.json?

The Configure Display Language command creates a locale.json file in your user VS Code folder. Depending on your platform, the locale.json file is located here:

Windows %APPDATA%\Code\User\locale.json
macOS $HOME/Library/Application Support/Code/User/locale.json
Linux $HOME/.config/Code/User/locale.json
The locale can also be changed by editing this file and restarting VS Code.

when trying to config display language and restart, ERR not implemented occured.

ERR not implemented: Error: not implemented ide.main.5b173b.js?__WB_REVISION__=36aa017b6acac125d50a:23   
    at e.relaunch (ide.main.5b173b.js?__WB_REVISION__=36aa017b6acac125d50a:60:1806644)
    at ide.main.5b173b.js?__WB_REVISION__=36aa017b6acac125d50a:67:1116236

This might be related to the issue.

Also, code-server does not seem to use ~/.config/Code. Maybe it has its own configuration storage ?

code-server (on Linux) uses ~/.local/share/code-server.

620 is working on this.

The Configure Display Language command creates a locale.json file in your user VS Code folder. Depending on your platform, the locale.json file is located here:

Windows %APPDATA%\Code\User\locale.json
macOS $HOME/Library/Application Support/Code/User/locale.json
Linux $HOME/.config/Code/User/locale.json
The locale can also be changed by editing this file and restarting VS Code.

it works ,3x.

The Configure Display Language command creates a locale.json file in your user VS Code folder. Depending on your platform, the locale.json file is located here:

Windows %APPDATA%\Code\User\locale.json
macOS $HOME/Library/Application Support/Code/User/locale.json
Linux $HOME/.config/Code/User/locale.json
The locale can also be changed by editing this file and restarting VS Code.

it works ,3x.

only working for root user.

I actually had to put locale.json under ~/.local/share/code-server/User/ (Linux) for this to work. I'm using the latest code-server (3.6.2).

Oh interesting, the language selector is supposed to write that file for
you. Did that not work? I'll test it out and see what's going on.

@code-asher Sadly the language selector didn't work. It did show all installed languages (language packs), but clicking one and refreshing or even restarting made no difference - it's still English. On the other hand, writing locale.json to the said location works immediately after refreshing browser page - no restart required.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

infogulch picture infogulch  路  3Comments

balazssoltesz picture balazssoltesz  路  3Comments

lshamis picture lshamis  路  3Comments

pchecinski picture pchecinski  路  3Comments

sa7mon picture sa7mon  路  3Comments