Fix untranslated CTA token in email notifications for multilingual sites

Created on 10 August 2023, over 1 year ago
Updated 18 September 2023, about 1 year ago

Problem/Motivation

Currently, when the user received a "join_to_group" notification, the "Call to Action" token will be untranslated

Steps to reproduce

  • Login under a user with a different preferred language than default one on the site
  • Create a flexible group
  • Login with a second account and join this group
  • Run cron
  • Observe the email sent about it

Proposed resolution

Need to take into account a "Prefered Language" of recipients during processing cta_button token:

new TranslatableMarkup('See all members', [], [langcode])
πŸ› Bug report
Status

Fixed

Version

11.10

Component

Activity/Notifications

Created by

πŸ‡ΊπŸ‡¦Ukraine SV

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

Comments & Activities

Production build 0.71.5 2024