Skip to content

Commit 5c0fcf0

Browse files
authored
Update README.md
1 parent 26887c2 commit 5c0fcf0

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,24 @@ It does not "watch" tutorial text, but it reloads the server after code changes.
125125
126126
Again, that's for developing the server code itself, not writing the tutorial.
127127
128-
# Troubleshooting
128+
# Importing images
129+
130+
You only need to re-import images if you change them, or change their translations in `images.yml`.
131+
132+
To do that, you need to have Mac and Sketch editor installed.
129133
130-
If you have a very old copy of the English tutorial, please rename `1-js/05-data-types/09-destructuring-assignment/1-destructuring-assignment` to `1-js/05-data-types/09-destructuring-assignment/1-destruct-user`.
134+
1. The task to get YAML with strings in image (for translation, to add to `images.yml`):
135+
```
136+
cd /js/server
137+
NODE_LANG=ru npm run gulp engine:koa:tutorial:imageYaml --image hello.svg
138+
```
139+
2. The task to import images from Sketch and apply translations:
140+
```
141+
cd /js/server
142+
NODE_LANG=ru npm run gulp engine:koa:tutorial:figuresImport
143+
```
144+
145+
# Troubleshooting
131146
132147
Please ensure you have Node.js version 10+ (`node -v` shows the version).
133148

0 commit comments

Comments
 (0)