Translate email notification to recipient's preferred language

Created on 24 February 2023, about 2 years ago
Updated 28 April 2023, almost 2 years ago

Problem/Motivation

Email notifications from private messages are not sent in the recipient's preferred language. Based off of this change β†’ , we can set the language of the message as so $message->setLanguage($recipients_language);

Steps to reproduce

Copied steps from 3307555

Setup multiple languages.
Setup the interface language to be determined by some factor, such as a language prefix in the URL.
Login as an authenticated user.
On a UI with an arbitrary current interface language (e.g. Japanese) trigger a message to a recipient (code below).
The recipient receives the email in the interface language of the sender and not the language specified when sending the message.

Proposed resolution

set the preferred language to the message per member in PrivateMessageNotifier

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robpowell Boston

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

Comments & Activities

Production build 0.71.5 2024