You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide.md
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -464,7 +464,8 @@ through the proxy without authentication, use `--skip-auth-preflight`.
464
464
465
465
##Internationalization and customization
466
466
467
-
code-server allows you to provide a JSON file to configure certain strings. This can be used for both internationalization and customization.
467
+
code-server allows you to provide a JSON file to configure certain strings. This
468
+
can be used for both internationalization and customization.
468
469
469
470
Create a JSON file with your custom strings:
470
471
@@ -489,13 +490,19 @@ Or this can be done in the config file:
489
490
i18n:/path/to/custom-strings.json
490
491
```
491
492
492
-
You can combine this with the`--locale` flag to configure language support for both code-server and VS Code in cases where code-server has no support but VS Code does. If you are using this for internationalization, please consider sending us a pull request to contribute it to `src/node/i18n/locales`.
493
+
You can combine this with the`--locale` flag to configure language support for
494
+
both code-server and VS Code in cases where code-server has no support but VS
495
+
Code does. If you are using this for internationalization, please consider
496
+
sending us a pull request to contribute it to `src/node/i18n/locales`.
493
497
494
498
### Available keys and placeholders
495
499
496
-
Refer to [../src/node/i18n/locales/en.json](../src/node/i18n/locales/en.json) for a full list of the available keys for translations. Note that the only placeholders supported for each key are the ones used in the default string.
500
+
Refer to [../src/node/i18n/locales/en.json](../src/node/i18n/locales/en.json)
501
+
for a full list of the available keys for translations. Note that the only
502
+
placeholders supported for each key are the ones used in the default string.
497
503
498
-
The `--app-name` flag controls the `{{app}}` placeholder in templates. If you want to change the name, you can either:
504
+
The `--app-name` flag controls the `{{app}}` placeholder in templates. If you
505
+
want to change the name, you can either:
499
506
500
507
1. Set `--app-name` (potentially alongside `--i18n`)
501
508
2. Use `--i18n` and hardcode the name in your strings