Fix schema to make block translatable

Created on 12 September 2024, 6 months ago

Problem/Motivation

Currently, if you translate the block using Configuration Translation, only the block's description is translatable. The module-specific settings on the block also fails Config Inspector, indicating a missing schema.

Steps to reproduce

1. Setup Drupal
2. Install Copyright Block and Configuration Translation modules.
3. Add a language in /admin/config/regional/language/add (e.g. French)
4. Add an instance of Copyright Block into Block Layout. Take note of the strings you added.
5. Go to /admin/config/regional/config-translation/block and look for your Copyright Block instance.
6. Click Translate and then edit the language you added.

On step 6, you will only see translatable block configs (e.g. the block description). You will not see the text you added for Copyright Block.

Proposed resolution

- Add a block_settings schema for Copyright Block block settings.

Remaining tasks

- Review
- Merge

User interface changes

- None

API changes

- None

Data model changes

- None

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fskreuz

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