Skip to content

Commit 75d0d68

Browse files
authored
Update README.md
1 parent f1dc9c3 commit 75d0d68

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ After `images.yaml` with translations is ready, it's time to apply translations:
146146
NODE_LANG=zh glp engine:koa:tutorial:figuresTranslate --image try-catch-flow.svg
147147
```
148148
149+
For Windows: `npm i -g cross-env` and prepend the call with `cross-env` to pass environment variables, like this:
150+
151+
```bash
152+
cd /js/server
153+
cross-env NODE_LANG=zh...
154+
```
155+
149156
The task takes upstream image version (English), replaces strings to it, then writes to same-named image in the tutorial repo.
150157
151158
You may want to open the resulting SVG file directly in the browser to see it.
@@ -172,12 +179,12 @@ cd /js/server
172179
NODE_LANG=en TUTORIAL_ROOT=/js/en.javascript.info npm run gulp engine:koa:tutorial:import
173180
```
174181
175-
For Windows: `npm i -g cross-env` and prepend the call with `cross-env` to pass environment variables, like this:
182+
> For Windows: `npm i -g cross-env` and prepend the call with `cross-env` to pass environment variables, like this:
176183
177-
```bash
178-
cd /js/server
179-
cross-env NODE_LANG=en...
180-
```
184+
```bash
185+
cd /js/server
186+
cross-env NODE_LANG=en...
187+
```
181188
182189
In the code above, `NODE_LANG` sets server language, while `TUTORIAL_ROOT` is the full path to tutorial repo, by default is `/js/$NODE_LANG.javascript.info`.
183190

0 commit comments

Comments
 (0)