Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated HomePage's hero_intro_link field to be a translatable field #12957

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danielfmiranda
Copy link
Collaborator

@danielfmiranda danielfmiranda commented Oct 1, 2024

Description

Link to sample test page: English Homepage, French Homepage
Related PRs/issues: TP1-1313

This PR updates the HomePage models hero_intro_link field from a SynchronizedField to a TranslatableField, allowing the link's label field to be translated.

Screenshots

CMS (English):

Screenshot 2024-10-01 at 16-45-04 Editing Homepage Homepage - Wagtail

CMS (Translate page):

Screenshot 2024-10-01 at 16-42-53 Translation of Homepage into French - Wagtail

Homepage (/en/):

Screenshot 2024-10-01 at 4 41 38 PM

Homepage (/fr/):

Screenshot 2024-10-01 at 4 41 56 PM

┆Issue is synchronized with this Jira Story

@danielfmiranda danielfmiranda changed the title updated HomePage's hero_intro_link field to be a translatable field Updated HomePage's hero_intro_link field to be a translatable field Oct 1, 2024
Copy link
Collaborator

@dlopezvsr dlopezvsr left a comment

Choose a reason for hiding this comment

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

@danielfmiranda thank you for working on this! Everything looks good to me. I realized that that the rewiew app links are not translating accordingly, but maybe due to the translation is not applied on the review app directly. Anyways, I pulled the branch to local to apply the transalation, and is working perfectly. Great job! Approved 🙌 🚀

Copy link
Collaborator

@ramram-mf ramram-mf left a comment

Choose a reason for hiding this comment

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

LGTM Daniel, thanks. Idk exactly what is failing on the tests, was it a ci hiccup?

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.

3 participants