Problem/Motivation
When installing the module, having the strict schema check enabled (service "testing.config_schema_checker" - "Drupal\Core\Config\Development\ConfigSchemaChecker") - I have an error:
In ConfigSchemaChecker.php line 98:
Schema errors for charts.settings with the following errors: 0 [] The charts.settings config object must specify a language code, because it contains translatable values. Steps to reproduce
Just install the module with the enabled "testing.config_schema_checker" service, and get an error.
Or write a Nightwatch test having the "charts" module as a dependency.
Proposed resolution
The easiest fix is just to add the langcode property to the default configuration config/install/charts.settings.yml like this:
+ langcode: en
dependencies: []
charts_default_settings:
But the question is - does this whole configuration really need to be translatable?
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork charts-3553626
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
murzI prepared a MR with adding the
langcode: ento the config/install, please review.Comment #4
nikathoneThanks @murz for the MR.
Comment #6
andileco commentedThank you! Committed.