-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Overriding React component props #1802
Comments
Here is the test: react-i18next/test/trans.render.spec.jsx Line 106 in badba25
with this key: https://github.com/i18next/react-i18next/blob/master/test/i18n.js#L44 |
Thank you, @adrai! The test is different than the examples in the documentation with custom components. The corresponding one I was looking at yesterday is: react-i18next/test/trans.render.spec.jsx Line 131 in badba25
Would that mean the costume tags were never meant to have overwriteable props? |
Feel free to provide a PR for that. |
react-i18next/test/trans.render.spec.jsx Line 91 in badba25
honestly...idk...but setting props from translations is another pandora's box If I remember right sole reason to introduce this was to allow for some |
Documentation issue
I have an issue with the
Trans
Component Overriding React component props behaviour. I checked theTrans
tests, and there is no test for Overwriting props; once I add one, it's failing. Is it a feature removed from the code but left in the documentation?For
Existing behaviour
Expected behaviour
Motivation
I want to fix the flows in the documentation and, at best, bring back the props substitution. The use case with links seems valuable, especially when using Routing. However, I can see additional ones, such as using icons as a component.
The text was updated successfully, but these errors were encountered: