Emails processed in queue are not translated

Created on 20 June 2025, 15 days ago

Problem/Motivation

When a Symfony Mailer Queue item is processed by the queue worker it typically runs in an environment where the default site language is used. To ensure the email is delivered in the correct language, we explicitly pass the current langcode.

Steps to reproduce

  1. Use a multi-language website.
  2. Send an email within a language context that is not the default language.
  3. The queue worker does not respect the previous language context and sends the email in the default language.

Proposed resolution

Introduce a custom language negotiator to set the language context in the queue worker. For that, we must carry over the language context that the email has been sent with the queue item.

✨ Feature request
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany simonbaese Berlin

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024