Lexicon supports nested text formatting out of the box
<Text />
components.
Nested formatting helps you <1>emphasize text</1>
. The <1>
refers to the corresponding child in the component tree so that we can keep track of it.
We would then translate that block of text into the desired language (say es-ES
). This would give us a translated template like El formato anidado te ayuda a <1>enfatizar el texto</1>
.
Finally, we would inject the proper translations, resulting in…