Closed vasiliy-l closed 4 months ago
@stefan-schweiger unfortunately @vasiliy-l is right... I've now released v14.1.2 that may work for both use cases... but if this gets issues in future, we need to revert https://github.com/i18next/react-i18next/issues/1729 completely
🐛 Bug Report
When passing number translation vars as children of
<Trans>
component, the values cannot be properly formatted. Then passing the values asvars
prop of the component, the numbers are formatted as expected.The bug appears in react-i18next version 14.0.7 and above. Probably, related to the fixes for #1729
To Reproduce
https://codesandbox.io/p/sandbox/react18next-trans-child-number-vars-not-formatted-cdx4f2
Expected behavior
Values passed as
<Trans>
children are expected to be formatted properly.Your Environment