Skip to content

Commit 44cc0f3

Browse files
authored
Update README.md
1 parent 584ded0 commit 44cc0f3

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ Windows, Unix systems and macOS are supported. For Windows, you'll need to call
8383
the webpage will reload automatically.
8484
8585
86+
# Windows: Environment variables
87+
88+
For Windows, please install `npm i -g cross-env` and prepend calls with `cross-env` to pass environment variables, like this:
89+
90+
```bash
91+
cd /js/server
92+
cross-env PORT=8080 ./edit en
93+
```
94+
95+
In the examples below, the commands are without `cross-env`, prepend it please if you're on Windows.
96+
97+
Alternatively, you can use other Windows-specific ways to set environment variables, such as `set NODE_LANG=zh` and others.
98+
8699
# Change server language
87100

88101
The server uses English by default for navigation and design.
@@ -144,14 +157,6 @@ This script checks out all SVG images from `upstream` and replaces the strings a
144157
> ```
145158

146159

147-
> For Windows: `npm i -g cross-env` and prepend the call with `cross-env` to pass environment variables, like this:
148-
>
149-
> ```bash
150-
> cd /js/server
151-
> cross-env NODE_LANG=zh...
152-
> ```
153-
154-
155160
## The "overflowing text" problem
156161

157162
The translated string may become longer than the original.

0 commit comments

Comments
 (0)