Skip to content

new line support? #716

Answered by aralroca
ffan0811 asked this question in Q&A
Nov 1, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Remember that \n in HTML doesn't work either. If you want to split text into different lines you have to use HTML inside your translations.

// The defined dictionary enter is like:
// "example": "<p>This text</p><p>is in two lines</p>"
<Trans i18nKey="common:example" components={{ p: <p /> }} />

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ffan0811
Comment options

@ornakash
Comment options

@aralroca
Comment options

@mateuszJS
Comment options

@EwenQuim
Comment options

Answer selected by ffan0811
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants