Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Fixes #20890

The filtering used on the Block Catalogue queries against the block-type data, meaning when localizations are used for a block-type's name and description, these are localized as render time (in the block-card display), and not in the data (source).

This PR moves the localization to when the block-types are first observed and processed (into groups). This means that the Block Catalogue filtering with query against the localized strings.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the Block Catalogue's search/filter functionality didn't work correctly with localized block-type names and descriptions. The fix moves the localization from render time (in the template) to data processing time (when block types are first observed and grouped).

  • Localizes block-type name and description earlier in the data flow, during the reduce operation that builds the lookup table
  • Removes redundant localization calls from the render template since data is now pre-localized
  • Enables search/filter to query against localized strings instead of localization keys

@iOvergaard iOvergaard enabled auto-merge (squash) November 20, 2025 09:22
@iOvergaard iOvergaard merged commit 4fe60f3 into main Nov 25, 2025
34 of 35 checks passed
@iOvergaard iOvergaard deleted the v17/bugfix/block-catalogue-modal-filter-localization branch November 25, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block search filters out translation names

3 participants