Skip to content

Commit 2b183e8

Browse files
committed
wip translation
1 parent 9cc0367 commit 2b183e8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content/learn/javascript-in-jsx-with-curly-braces.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,13 @@ body > div > div { padding: 20px; }
424424
425425
</Solution>
426426
427-
#### Write an expression inside JSX curly braces {/*write-an-expression-inside-jsx-curly-braces*/}
427+
#### Psaní výrazu ve JSX pomocí složených závorek {/*write-an-expression-inside-jsx-curly-braces*/}
428428
429-
In the object below, the full image URL is split into four parts: base URL, `imageId`, `imageSize`, and file extension.
429+
V objektu níže je URL obrázku rozdělena na čtyři části: URL, `imageId`, `imageSize` a přípona.
430430
431-
We want the image URL to combine these attributes together: base URL (always `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), and file extension (always `'.jpg'`). However, something is wrong with how the `<img>` tag specifies its `src`.
431+
Chceme aby URL obrázku kombinovala tyto atributy: URL (stále `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`) a příponu souboru (pořád `'.jpg'`). Nicméně, něco je špatně s tím jak `<img>` tag specifikuje svůj atribut `src`.
432432

433-
Can you fix it?
433+
Dokážete to spravit?
434434

435435
<Sandpack>
436436

@@ -474,15 +474,15 @@ body > div > div { padding: 20px; }
474474

475475
</Sandpack>
476476

477-
To check that your fix worked, try changing the value of `imageSize` to `'b'`. The image should resize after your edit.
477+
Pro kontrolu, jestli vaše oprava funguje, zkuste měnit hodnotu `imageSize` na `'b'`. Obrázek by měl změnit velikost.
478478

479479
<Solution>
480480

481-
You can write it as `src={baseUrl + person.imageId + person.imageSize + '.jpg'}`.
481+
Můžete to napsat jako `src={baseUrl + person.imageId + person.imageSize + '.jpg'}`.
482482

483-
1. `{` opens the JavaScript expression
484-
2. `baseUrl + person.imageId + person.imageSize + '.jpg'` produces the correct URL string
485-
3. `}` closes the JavaScript expression
483+
1. `{` začíná JavaScriptový výraz
484+
2. `baseUrl + person.imageId + person.imageSize + '.jpg'` produkuje správnou URL
485+
3. `}` ukončuje JavaScriptový výraz
486486

487487
<Sandpack>
488488

@@ -525,7 +525,7 @@ body > div > div { padding: 20px; }
525525

526526
</Sandpack>
527527

528-
You can also move this expression into a separate function like `getImageUrl` below:
528+
Také můžete tento výraz přesunout do separátní funkce `getImageUrl` níže:
529529

530530
<Sandpack>
531531

@@ -580,7 +580,7 @@ body > div > div { padding: 20px; }
580580

581581
</Sandpack>
582582

583-
Variables and functions can help you keep the markup simple!
583+
Proměnné a funkce vám pomůžou udržet jednoduchou strukturu!
584584

585585
</Solution>
586586

0 commit comments

Comments
 (0)