Skip to content

Commit 7872068

Browse files
committed
minor fixes
1 parent db9872b commit 7872068

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,26 @@ If you add a translation to `images.yml`, but after running the script the SVG r
281281
3. Check that there's only 1 file with the given name in the tutorial. Sometimes there may be duplicates.
282282
4. Check that the translated string in `images.yml` is exactly as in SVG: use the helper script to extract all strings.
283283

284+
For example, let's say you added `"White Rabbit": "Coelho Branco"` to the `images.yml`, and it doesn't work.
285+
286+
Let's get all strings:
287+
288+
```
289+
❯ NODE_LANG=pt npm run gulp -- engine:koa:tutorial:imageYaml --image proto-constructor-animal-rabbit.svg
290+
proto-constructor-animal-rabbit.svg:
291+
'eats: true': ''
292+
'name: "White Rabbit"': ''
293+
animal: ''
294+
Rabbit: ''
295+
rabbit: ''
296+
'[[Prototype]]': ''
297+
prototype: ''
298+
```
299+
300+
Now we can see, that the text is actually longer, it's `name: "White Rabbit"`.
301+
So the line in the `images.yml` should be something like: `"name: \"White Rabbit\"": "text": "name: \"Coelho Branco\""`.
302+
303+
284304
If it still doesn't work – [file an issue](https://github.com/javascript-tutorial/server/issues/new).
285305
286306
# Dev mode

0 commit comments

Comments
 (0)