Backport User preferred language from 3372166

Created on 25 April 2025, 20 days ago

Problem/Motivation

After upgrading to 1.6.0-beta1 we found emails only send in the sites default language and translated emails do not get sent in the users preferred language.

I found this had been fixed in 2.0.0-alpha by @AdamPS

I also found @AdamPS has already fixed his issue here:
https://git.drupalcode.org/issue/symfony_mailer-3372166/-/compare/1.6.0-...

I pulled the code down and tested it and emails now send in the users preferred language and I could not find any other issues.

Steps to reproduce

- Set up translated emails
- Set the users preferred language to anything other than the site default
- Trigger an email

Proposed resolution

Merge @AdamPS code in to 1.6.0-beta

Remaining tasks

Merge @AdamPS code in to 1.6.0-beta

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Active

Version

1.6

Component

Code

Created by

🇬🇧United Kingdom moss.dev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @moss.dev
  • 🇬🇧United Kingdom moss.dev

    Hi @AdamPS,

    I saw your message that if someone wants this backported they should raise a working MR. But I found you had already done all the work and I have tested it and it seems to be working great.

    I didn't think it was right to make an MR from your work and I also wanted to know if you think it still needs work.

    I am happy to do anything to get this backported. Please let me know if you need anything.

    Thanks for your work here so far.

  • First commit to issue fork.
Production build 0.71.5 2024