Skip to content

Commit 74385b9

Browse files
committed
minor fixes
1 parent 4cf0b31 commit 74385b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ git fetch upstream master
143143
```bash
144144
cd /js/server # in the server folder
145145
# adjust NODE_LANG to your language
146-
NODE_LANG=zh glp engine:koa:tutorial:figuresTranslate
146+
NODE_LANG=zh npm run gulp -- engine:koa:tutorial:figuresTranslate
147147
```
148148
149149
This script checks out all SVG images from `upstream` and replaces the strings according to `images.yml`.
@@ -152,13 +152,13 @@ Now images in the tutorial folder are translated, but not committed yet.
152152
153153
**Step 4.** Then you'll need `git add/commit/push` the translated SVGs, as a part of the normal translation flow.
154154

155-
You may want to open the translated SVGs directly in the browser to take a look at them before committing. Just to make sure that the translation looks all right. If an image is untranslated on refresh, use "uncached reload" (hotkeys at https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache).
155+
You may want to open the translated SVGs directly in the browser to take a look at them before committing. Just to make sure that the translation looks all right. If an image is untranslated on refresh, force the browser to "reload without cache" ([hotkeys](https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache)).
156156

157157

158158
> To translate a single image, use the `--image` parameter of the script:
159159
> ```bash
160160
> # replace strings only in try-catch-flow.svg
161-
> NODE_LANG=zh glp engine:koa:tutorial:figuresTranslate --image try-catch-flow.svg
161+
> NODE_LANG=zh npm run gulp -- engine:koa:tutorial:figuresTranslate --image try-catch-flow.svg
162162
> ```
163163

164164

0 commit comments

Comments
 (0)