-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling ICU breaks interpolation #56
Comments
You used the wrong interpolation parenthesis... |
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
The text was updated successfully, but these errors were encountered: