Skip to content

Child errors of arrays do consider childrens' i18n keys #2126

Open
@lucas-koehler

Description

@lucas-koehler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions