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
What happened instead:
It fails with Error: missing translation "Must be 10 characters at least"
Steps to reproduce:
Add the above code
Enter text in text input which is less than 10 characters
Other information:
If adding logging to the above function it does first get called with error.minLength then gets called with return value of that e.g. Must be 10 characters at least. I suspect somewhere it calling translate again when it is not needed.
What you were expecting:
In our i18nProvider we have code to raise an error if a translation is missing
We are expecting validation translations to work when we have code to ensure translations aren't missing
What happened instead:
It fails with
Error: missing translation "Must be 10 characters at least"
Steps to reproduce:
Other information:
If adding logging to the above function it does first get called with
error.minLength
then gets called with return value of that e.g.Must be 10 characters at least
. I suspect somewhere it calling translate again when it is not needed.I have found one area where this happens
react-admin/packages/ra-ui-materialui/src/button/SkipNavigationButton.tsx
Line 13 in a408de0
But cannot find where this happen in the validation code.
Environment
The text was updated successfully, but these errors were encountered: