-
-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning when pass a number to Trans values prop #1676
Comments
I don't know what you mean... |
We have to check type of number in here https://github.com/i18next/react-i18next/blob/1ff5cabcebcc833af8410dc4c69ea08070dda745/src/TransWithoutContext.js#L49 |
feel free to open a pull requests with tests |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
馃悰 Bug Report
When we pass a number to values of Trans and use it as a child, we get a warning in the console.
To Reproduce
warning: react-i18next:: Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}
Expected behavior
I do not have any warning in the console.
Your Environment
The text was updated successfully, but these errors were encountered: