jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Child errors of arrays do consider childrens' i18n keys

Open lucas-koehler opened this issue 2 years ago • 0 comments

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

  1. Use an array control with object array elements and customize error messages for the child UI schema
  2. create errors
  3. 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

lucas-koehler avatar Apr 05 '23 15:04 lucas-koehler