jsonforms
jsonforms copied to clipboard
Child errors of arrays do consider childrens' i18n keys
Describe the bug
The mapStateToArrayLayoutProps does not consider child UI schema's i18n keys when calculating the array's child errors.
Noticed via: https://jsonforms.discourse.group/t/how-to-handle-rollup-errors-with-a-control-using-i18n/1422
Expected behavior
The method getCombinedErrorMessage used in mapStateToArrayLayoutProps should resolve provided i18n messages for errors in child elements.
Steps to reproduce the issue
- Use an array control with object array elements and customize error messages for the child UI schema
- create errors
- Hover over the array's error aggregation tooltip to see the untranslated error messages
Which Version of JSON Forms are you using?
latest commit from Mar 15, 2023
Framework
Core