Closed the-line closed 1 year ago
You used the wrong interpolation parenthesis...
for ICU it is: User { what } has been created
instead of User {{ what }} has been created
That was the problem! Thank you very much for your time to figure this out :)
Maybe mentioning in the documentation when using ICU that the i18next interpolation rules should not be used and only ICU interpolation rules will work.
That was the problem! Thank you very much for your time to figure this out :)
Maybe mentioning in the documentation when using ICU that the i18next interpolation rules should not be used and only ICU interpolation rules will work.
Thanks again, and this was a nice case of "You should read the manual".
Sorry about that.
I have changed the sandbox code to point this difference out for reference if someone find this issue.
🐛 Bug Report
When ICU is enabled on i18next with react-i18next, some interpolations aren't executed. When .use(ICU) is commented out, the interpolation is working correctly.
To Reproduce
https://codesandbox.io/s/icu-interpolation-ix0cl3
Expected behavior
The text "User test has been created" is shown on the page.
Actual behavior
The text "User {{ what }} has been created" is shown on the page. Notice that the interpolation is not executed.
Your Environment