You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be viewed as a bug or an improvement, but either way – I found an unexpected behavior that feels buggy to me. When interpolating a component with children, the children are replaced by the children from the translation, even when the component in the translation string is self-closing.
🐛 Bug Report
This could be viewed as a bug or an improvement, but either way – I found an unexpected behavior that feels buggy to me. When interpolating a component with children, the children are replaced by the children from the translation, even when the component in the translation string is self-closing.
To Reproduce
Full example: https://codesandbox.io/p/sandbox/react-i18next-trans-component-interpolation-rf646l?file=%2Fsrc%2FApp.js%3A35%2C1-36%2C1
The gist:
Expected behavior
interpolated component's children should be preserved in the final translation
Your Environment
The text was updated successfully, but these errors were encountered: