Translated E-Mail config is overwritten on config translation update

Created on 7 November 2023, 8 months 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.69.0 2024