-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
doc about localization of ajv incomplete for MUI forms #4092
Comments
@dberardo-com If you are referring to the |
i see, i will give it a try, thanks for pointing that out. i think it would be worthwhile to have this hint as part of the i18n doc. also: apart from validation, i understand that the only way to translate other text elements inside the form is to override the default templates / widgets with own components, right ? or are there any other elements related to localization other than ajv-localizer and ui-schemas ? |
You can translate the strings in the out of the box components using the translateString property on |
i see, will give it a try |
can we change it to any text else |
@Ramadan4 If you are asking about the |
Prerequisites
What theme are you using?
mui
Version
5.x
Current Behavior
the ajv localizer is called only when the formData validation is performaded on the overall formData payload, thus the content is partially translated.
in particular the "required" fields are not triggering the ajv validation, thus they are not translated.
so using the example from the doc, this is working:
but this is not translated:
Expected Behavior
according to this https://rjsf-team.github.io/react-jsonschema-form/docs/usage/validation/#some-examples the required field should also be translated
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: