react-i18next
react-i18next copied to clipboard
default wrap component ?
hi, I can't seem to find information on how to default wrap my raw string in 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.
thanks for help
Try transWrapTextNodes: 'p'
But maybe you mean defaultTransParent: 'p'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.