We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The idea is to create a FormattedMessages for translations, allowing us to write the messages using the HTML tags <b></b> and <br></br>.
FormattedMessages
<b></b>
<br></br>
Instead of writing:
{ "title": "The {bold_title}.{new_line}A description" } <T id="title" values={{bold_title: <strong>{foo}</strong>, new_line: <br />}} />
We could write using the following:
{ "title": "The <b>{bold_title}</b>.<br></br>A description" } <T id="title" values={{bold_title: foo }} />
Documentation info: https://formatjs.io/docs/react-intl/components#formattedmessage
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The idea is to create a
FormattedMessages
for translations, allowing us to write the messages using the HTML tags<b></b>
and<br></br>
.Instead of writing:
We could write using the following:
Documentation info: https://formatjs.io/docs/react-intl/components#formattedmessage
The text was updated successfully, but these errors were encountered: