Skip to content

Commit 9df741c

Browse files
committed
minor fixes
1 parent 7872068 commit 9df741c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -281,24 +281,24 @@ 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\""`.
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\""`.
302302

303303

304304
If it still doesn't work – [file an issue](https://github.com/javascript-tutorial/server/issues/new).

0 commit comments

Comments
 (0)