1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Revert "Remove ENABLED_LANGUAGES" (#33953)

This commit is contained in:
Peter Bengtsson
2023-01-13 18:52:48 +01:00
committed by GitHub
parent cdf1123135
commit f7be7f0129
10 changed files with 46 additions and 30 deletions

View File

@@ -42,7 +42,7 @@ The [`script/bookmarklets`](../script/bookmarklets) directory contains some brow
### Enabling different languages
By default the local server won't run with all supported languages enabled. If you need to run the server with a particular language, you'll need to clone that language into your translations directory.
By default the local server won't run with all supported languages enabled. If you need to run the server with a particular language, you can temporarily edit the `start` script in `package.json` and update the `ENABLED_LANGUAGES` variable. For example, to enable Japanese and Portuguese, you can set it to `ENABLED_LANGUAGES='en,ja,pt'` and then you need to restart the server for the change to take effect.
The supported language codes are defined in [lib/languages.js](../lib/languages.js).