Open jonlepage opened 3 months ago
hi, I can't seem to find information on how to default wrap my raw string in elements to adhere to HTML and SEO conventions.
elements
https://react.i18next.com/latest/trans-component
is there a way to do something like ?
<Trans defaultcomponent=<MyCustomDefaultWrap /> components={{...}} > {content} </Trans>
note: the transWrapTextNodes in init config seem not work and crash.
transWrapTextNodes
thanks for help
Try transWrapTextNodes: 'p'
transWrapTextNodes: 'p'
But maybe you mean defaultTransParent: 'p'
defaultTransParent: 'p'
hi, I can't seem to find information on how to default wrap my raw string in
elements
to adhere to HTML and SEO conventions.https://react.i18next.com/latest/trans-component
is there a way to do something like ?
note: the
transWrapTextNodes
in init config seem not work and crash.thanks for help