File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,26 @@ If you add a translation to `images.yml`, but after running the script the SVG r
2812813. Check that there' s only 1 file with the given name in the tutorial. Sometimes there may be duplicates.
2822824. 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+
284304If it still doesn' t work – [file an issue](https://github.com/javascript-tutorial/server/issues/new).
285305
286306# Dev mode
You can’t perform that action at this time.
0 commit comments