[config schema] menu_link_attributes.config must specify a language code, because it contains translatable values
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3577465. --> Reported by: [herved](https://www.drupal.org/user/2197136) Related to !37 !36 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Discovered via config_inspector<br> Follows <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/menu_link_attributes/-/work_items/3470692" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/menu_link_attributes/-/work_items/3470692</a></span></p> <p>The <code>menu_link_attributes.config</code> config object must specify a language code, because it contains translatable values - <code>type: label</code>.<br> See related change record (introduced in 10.3.0): <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-0"><a href="https://www.drupal.org/node/3427629" title="Status: Unknown">#3427629: `langcode: &hellip;` is now required for config objects that contain translatable values</a></span></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>- Install drupal, enable config_inspector and menu_link_attributes<br> - Run config inspector with constraints validation:</p> <pre>$ ddev drush config:inspect --only-error --detail --list-constraints<br>&#10140;&nbsp; &#129302; Analyzing&hellip;<br><br> Legend for Data: <br>&nbsp; &#9989;&#10067;&nbsp; &rarr; Correct primitive type, detailed validation impossible.<br>&nbsp; &#9989;&#9989;&nbsp; &rarr; Correct primitive type, passed all validation constraints.<br> ----------------------------- --------- ------------- ---------- -------------------------------------------- <br>&nbsp; Key&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status&nbsp;&nbsp;&nbsp; Validatable&nbsp;&nbsp; Data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Validation constraints&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> ----------------------------- --------- ------------- ---------- -------------------------------------------- <br>&nbsp; menu_link_attributes.config&nbsp;&nbsp; Correct&nbsp;&nbsp; 67%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 errors&nbsp;&nbsp; ValidKeys: '&lt;infer&gt;'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LangcodeRequiredIfTranslatableValues: null&nbsp; <br> ----------------------------- --------- ------------- ---------- --------------------------------------------</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>- Add missing <code>langcode: en</code> in menu_link_attributes.config.yml<br> - Add update hook for existing installations</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>?</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>N/A</p> <h3 id="summary-api-changes">API changes</h3> <p>N/A</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>N/A</p>
issue