Skip to content

[2026.3][Studio] Translate layout titles in language comparison view - #4170

Merged
jcPimcore merged 4 commits into
2026.3from
fix/pv410-studio-language-comparison-translation
Oct 7, 2026
Merged

jcPimcore merged 4 commits into
2026.3from
fix/pv410-studio-language-comparison-translation

Conversation

@jcPimcore

@jcPimcore jcPimcore commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The language comparison view rendered raw layout title keys (e.g. Product.layout.general) as section headers.
  • renderSectionTitle now passes each breadcrumb segment through t() after splitting on /, mirroring object-versions-fields-view.tsx.
  • Translating at render time keeps the raw key in groupIntoSections (grouping is keyed on the breadcrumb string) and covers brick/field-collection breadcrumbs. Plain-string titles fall back to themselves.

Refs PEES-1593. Reported against 2026.2, which is closed for bugfix releases, so this targets 2026.3.
Resolves pimcore/platform-version#410

Verification

  • Not run locally: no JS toolchain in this checkout. Relying on CI for lint/typecheck.
  • Not manually verified in a running Studio instance.

🤖 Generated with Claude Code

The section header in the language comparison view rendered the raw
layout title key (e.g. Product.layout.general) because the breadcrumb
segments were never passed through the translation function. Translate
each segment at render time, as the versions view already does.

Refs PEES-1593

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:44
@jcPimcore jcPimcore added this to the 2026.3.1 milestone Oct 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Memoized content does not refresh translated titles when the UI language changes.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Translates language-comparison section breadcrumbs instead of displaying raw translation keys.

Changes:

  • Applies t() to each slash-delimited breadcrumb segment.
File Description
language-comparison-content.tsx Translates section-title segments during rendering.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jcPimcore jcPimcore modified the milestones: 2026.3.1, 2026.3.2 Oct 7, 2026
@jcPimcore jcPimcore self-assigned this Oct 7, 2026
renderedContent is memoized and now evaluates t() for section titles,
so add t to its dependencies to re-render when the language changes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approved

The focused change matches the established versions-view pattern and no blocking correctness issues were found.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

@jcPimcore
jcPimcore merged commit 172f6cb into 2026.3 Oct 7, 2026
1 check passed
@jcPimcore
jcPimcore deleted the fix/pv410-studio-language-comparison-translation branch October 7, 2026 10:20
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants