Skip to content

Commit 8543741

Browse files
Fixed localization documentation to highlight HTML 5 validation (#4882)
Fixed $4092 by updating the validation documentation to indicate the situtation where HTML 5 Validation is not translated
1 parent 828331b commit 8543741

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ should change the heading of the (upcoming) version to include a major version b
3838
- Override `antd`'s `SelectWidget.getPopupContainerCallback` callback function to return undefined
3939
- Added a `AntdSelectPatcher` component that observes the creation of `antd` select dropdowns and makes sure they open in the correct location
4040
- Update the `antd` theme wrapper to render the `AntdSelectPatcher`, `AntdStyleProvider` and `ConfigProvider` with it's own `getPopupContainer()` function inside of a `FrameContextConsumer`
41-
- Updated TypeScript configuration to use `"moduleResolution": "bundler"`
41+
- Updated the base TypeScript configuration to use `"moduleResolution": "bundler"`
42+
- Updated the `validation.md` documentation to note that HTML 5 validation is not translatable via RJSF translation mechanisms and should be turned off, fixing [#4092](https://github.com/rjsf-team/react-jsonschema-form/issues/4092)
4243

4344
# 6.1.1
4445

packages/docs/docs/usage/validation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,3 +780,4 @@ NOTES:
780780
- If you provided your own function, modify the list in place.
781781
- You must process all the cases which you need by yourself. See the full list of possible cases [here](https://github.com/ajv-validator/ajv-i18n/blob/master/messages/index.js).
782782
- Each element in the `errors` list passed to the custom function represent a **raw** error object returned by ajv ([see doc](https://github.com/ajv-validator/ajv/blob/master/docs/api.md#error-objects)).
783+
- [HTML 5 Validation](#html5-validation) will cause the browser to display a "popup" message, the text of which is entirely under control of the browser. If you are seeing messages which aren't translated "popping up", then add `noHtml5Validate` to your form.

0 commit comments

Comments
 (0)