How to style text within locize?
You may be trying to do some basic stylization: bold, italics, underline, etc... Ideally, you also want to add links within a string as well (i.e. a html tag)?
Styling translations depends less on the string - but on the technology (and i18n format) used to render content.
For react-i18next for example, you can use simple HTML elements like <br />
and others:
For locizify, you might use different content on merged elements (there might be limitations):
For plain HTML, you will have to append the translation to the html element as innerContent
.
So, really depends on where the string gets rendered and with what technology.
Last updated