Non-english admin language issue when building the wrapper form

Created on 6 February 2023, almost 2 years ago

Problem/Motivation

When building the wrapper form, the content of the component_type widget is used to identify the component directory and definition. As these values can be translated by Drupal, you should not rely on them to build your plugin_id.

Steps to reproduce

  1. Change admin language to anything but English (let say French)
  2. Translate "Accordion" to "Accordéon" in the UI translation tool
  3. Try to add a component, accordion should not appear anymore in the list

Proposed resolution

Do not use translated version of the human friendly name to guess the machine name. (You should not use the human friendly name at all because it can differ from the machine name)

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France duaelfr Montpellier, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024