Skip to content

Fix CMS page plain text fields not being translated#54

Merged
dadolun95 merged 1 commit intomainfrom
bugfix/fix-cms-plain-text-translation
Mar 19, 2026
Merged

Fix CMS page plain text fields not being translated#54
dadolun95 merged 1 commit intomainfrom
bugfix/fix-cms-plain-text-translation

Conversation

@SamueleMartini
Copy link
Copy Markdown
Collaborator

@SamueleMartini SamueleMartini commented Mar 19, 2026

Summary

  • Fix title, content_heading, meta_title, meta_keywords, meta_description not being translated on CMS pages
  • TranslateParsedContent::execute() for string input now translates the text via Translator before handling widget directives
  • Add identifier (URL Key) to CMS page allowed translation fields
  • Fix url_key slug sanitization check to use correct field name (identifier)

Test plan

  • Translate a CMS page and verify title, content heading, meta fields are translated
  • Verify URL key is translated and properly slugified
  • Verify content with Page Builder HTML still translates correctly
  • Verify widget directives in plain text fields are handled correctly

Copy link
Copy Markdown
Collaborator

@dadolun95 dadolun95 left a comment

Choose a reason for hiding this comment

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

Lgtm

@dadolun95 dadolun95 merged commit 489526d into main Mar 19, 2026
2 checks passed
@dadolun95 dadolun95 deleted the bugfix/fix-cms-plain-text-translation branch March 19, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants