Send emails in the language of the recipient and not in the current UI language

Created on 10 January 2019, almost 6 years ago
Updated 7 November 2023, about 1 year ago

Problem/Motivation

As of now, the email notifications emails are sent in the current user interface language and not in the default language of the recipient.

As an example, publishing an article with FR user interface language will sent out an email in FR (in case there is a translation).

Proposed resolution

One option would be to use a preferred admin language of the recipient as a default email notification language?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia thtas

    My solution for this was to override the queue processor class with our own.

    As it's processing each item, we check if a user exists with that email, then re-load the template in the users preferred language.

    It would might be better if the queue items included the user being notified rather than the email address. This would also catch the case of a user changing email addresses before the queue item was processed.

    Attached is my override in case anybody else finds it useful.

Production build 0.71.5 2024