Skip to content

Commit 3af7da6

Browse files
jamuhlgitbook-bot
authored andcommitted
GitBook: [#158] No subject
1 parent 51b2b3a commit 3af7da6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

latest/trans-component.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ This format is useful if you want to interpolate the same node multiple times. A
106106
Existing self-closing HTML tag names are reserved keys and won't work. Examples: `link: <Link />`, `img: <img src="" />`, `media: <img src="" />`
107107
{% endhint %}
108108

109+
{% hint style="info" %}
110+
Make sure you also adapt your translation resources to include the _named tags_ (`<italic>`) instead of the _indexed tags_ (`<0>`)!
111+
{% endhint %}
112+
109113
### Usage with simple HTML elements like \<br /> and others (v10.4.0)
110114

111115
There are two options that allow you to have basic HTML tags inside your translations, instead of numeric indexes. However, this only works for elements without additional attributes (like `className`), having none or a single text children.

0 commit comments

Comments
 (0)