You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,24 @@ It does not "watch" tutorial text, but it reloads the server after code changes.
125
125
126
126
Again, that's for developing the server code itself, not writing the tutorial.
127
127
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.
129
133
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
131
146
132
147
Please ensure you have Node.js version 10+ (`node -v` shows the version).
0 commit comments