Open Asranov opened 4 months ago
\n
is not a newline in html...use eg. https://react.i18next.com/latest/trans-component#usage-with-simple-html-elements-like-less-than-br-greater-than-and-others-v10.4.0 or replace \n
with <br />
and set it as innerHtml (dangerouslySetInnerHtml)
I'm facing an issue where multiline text defined in translations using \n or \n is not displaying with line breaks in React i18next. Instead, the text appears as a single line without breaks when rendered.