Skip to content

feat(emails): Localize email preheaders#18205

Merged
vpomerleau merged 1 commit intomainfrom
FXA-8558
Jan 13, 2025
Merged

feat(emails): Localize email preheaders#18205
vpomerleau merged 1 commit intomainfrom
FXA-8558

Conversation

@vpomerleau
Copy link
Copy Markdown
Contributor

@vpomerleau vpomerleau commented Jan 10, 2025

Because

  • New preheaders will be introduced for the inactive account warning emails
  • Email preheaders were not localized
  • MJML has a dedicated tag for email previews

This pull request

  • Remove preHeader passed in template values
  • Set preview content in email templates instead of handler
  • Use MJML mj-preview to set preview text
  • Add localization handling for preview text

Issue that this pull request solves

Closes: #FXA-8558

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Maildev does not show previews, which makes it harder to validate this change locally. I have verified that the preview text is included in the email source and hidden from view (as expected for preview text), but this might need to be validated on stage to ensure it works as expected.

Because:

* Email preheaders were not localized
* MJML has a dedicated tag for email previews

This commit:

* Remove preHeader passed in template values
* Set preview content in email templates instead of handler
* Use MJML mj-preview to set preview text
* Add localization handling for preview text

Closes #FXA-8558
Copy link
Copy Markdown
Contributor

@chenba chenba left a comment

Choose a reason for hiding this comment

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

📧

@vpomerleau vpomerleau marked this pull request as ready for review January 10, 2025 21:29
@vpomerleau vpomerleau requested review from a team as code owners January 10, 2025 21:29
@vpomerleau vpomerleau merged commit a9e4fd3 into main Jan 13, 2025
@vpomerleau vpomerleau deleted the FXA-8558 branch January 13, 2025 18:52
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