CKEditor 5 show blocks label is not translated

Created on 5 September 2024, 7 months ago
Updated 12 September 2024, 7 months ago

Problem/Motivation

When the "Show blocks" button is attached to a CKEditor, the label shown when hovering over the button is always "Show blocks" and is not translated into the user's language.

Steps to reproduce

Assuming a standard Drupal installation, with a (interface) language that is not English and having this CKEditor 5 enabled:

  1. Edit a text format that uses the CKEditor, e.g., /admin/config/content/formats/manage/basic_html.
  2. Add the "Show blocks" button to the active toolbar and save the configuration form.
  3. Create a node that has a text field with support for the CKEditor, e.g., /node/add/page.
  4. Hover over the button to show the block elements and notice that regarding the language of the user interface, "Show blocks" is shown.

Proposed resolution

In core.libraries.yml, the ckeditor5.showBlocks definition seems to miss a dependency to core/ckeditor5.translations.

Remaining tasks

  • Review merge request.

User interface changes

When a translation of "Show blocks" is available in Drupal in the user's language, the label shown when hovering over the "Show blocks"-button is displayed in the user's language.

Introduced terminology

N.a.

API changes

N.a.

Data model changes

N.a.

Release notes snippet

N.a.

🐛 Bug report
Status

Fixed

Version

10.3

Component
CKEditor 5 

Last updated 1 day ago

Created by

🇳🇱Netherlands watergate

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024