I'm working with i18next for react https://github.com/i18next/react-i18next. I'm struggling to break lines within the string in my JSON language file.
这是我已经try 过的,并没有打破一条新的界线:
-
line: "This is a line. \n This is another line. \n Yet another line"
, -
line: ("This is a line."+ <br/> + "This is another line. \n Yet another line")
, -
line: ('This is a line. <br/> This is another line. \n Yet another line')
,
很明显,我会在每句话后换一行.这就是我所说的:
<TooltipLink onClick={() => {
this.toggleHelpTextDialog(t('test:test.line'));
}}/>
有什么主意吗?谢谢!