Validation message is not translatable by the configuration translation system. Custom schema definition is needed to provide it.

Comments

manuel.adan created an issue. See original summary.

manuel.adan’s picture

Status: Active » Needs review
StatusFileSize
new1.45 KB

I found that the config schema was incorrect. It now works and error message translation is available at the configuration translation ( /admin/config/regional/config-translation/field_validation_rule_set ).

manuel.adan’s picture

The schemas has some additional things to fix:

1. Schema prefix for rule sets is expected to be "field_validation.field_validation_rule_set.*", but the actual value is "field_validation.fv.*". I renamed it in schema and code to "field_validation.rule_set.*", that matched better with standards.

2. Non of the available validation rules had schemas. I added it all.

This patch introduces a database update that renames existing configuration entries. Don't forget to "drush updb" and then export your config to populate the changes to config sync dir.

  • manuel.adan committed e276d46 on 8.x-1.x
    Issue #3001796 by manuel.adan: Translation support (missed schema)
    
manuel.adan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.