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
When passing the count prop to a Trans component (with no values prop) the interpolation prefix/suffix change from the default to #$? & ?$#
Including an empty values object in the Trans prop makes it work fine (shown in the example).
I'm trying to pinpoint exactly in which version this broke as I noticed it when running a host of upgrades. I'll keep digging but thought I'd put this ticket up sooner rather than later in case it's an obvious fix that I'm missing!
🐛 Bug Report
When passing the
count
prop to a Trans component (with no values prop) the interpolation prefix/suffix change from the default to#$?
&?$#
Including an empty values object in the Trans prop makes it work fine (shown in the example).
I'm trying to pinpoint exactly in which version this broke as I noticed it when running a host of upgrades. I'll keep digging but thought I'd put this ticket up sooner rather than later in case it's an obvious fix that I'm missing!
I think it is a similar issue this? #1685
To Reproduce
A Link to codesandbox
Expected behavior
The interpolation for count passed directly as props should be the same as the rest of the i18next behaviour
The text was updated successfully, but these errors were encountered: