Translated E-Mail config is overwritten on config translation update

Created on 7 November 2023, about 1 year ago

Problem/Motivation

When Drupal is configured to not use en as the default language, setting up email templates will get overwritten, whenever \Drupal::service('locale.config_manager')->updateConfigTranslations() is called for the user_api_email_confirm or user_api_passwordless modules.

The Problem comes from the english source strings for the email subjects (in case of user_api_email_confirm) and the email body (in case of user_api_passwordless) being exactly identical.

Due to the locale config manager using the source string as a key for translating config, the actual values are being mixed up.

Proposed resolution

Make sure that the source config provides unique strings in the email content config.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇹Austria chfoidl Salzburg

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

Comments & Activities

Production build 0.71.5 2024