Problem/Motivation

The DrupalMailHandler is passing the default language name instead of a language code.

$mail->mail('monolog', 'default', $this->to, $default_language->getName(), $params);

https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...

Proposed resolution

Change $default_language->getName() to $default_language->getId().

Issue fork monolog-3467661

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robbiehobby created an issue. See original summary.

bobooon’s picture

Status: Active » Needs review
scerreto’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +ContributionWeekend2025

Tested! It works!

lussoluca’s picture

Status: Reviewed & tested by the community » Needs review

lussoluca’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.