I built the Drupal CMS German Installer (dcgi) to install Drupal CMS and its site templates in German. Its goal is to find problems with the Drupal CMS site templates, their default content and their translation into languages other than English. This issue is one I found while working on it.

Problem/Motivation

components/02-molecules/space-content-detail/space-content-detail.twig (1.0.x, checked on 7 November 2026) formats the date with Twig's own date filter:

{% set date_formatted = date|date('d M Y') %}

That filter formats with PHP and does not translate, so month names are always English, whatever the language of the site.

Steps to reproduce

Install Drupal CMS in German with Pulse and open a page that uses the content detail component with a date: the month name is not translated.

Proposed resolution

Use Drupal's date formatter, which translates month names, for example {{ date|date('U')|format_date('medium') }}, or make the pattern translatable with format_date('custom', 'd M Y'|t).

Additional information

The same problem exists in Mercury: https://git.drupalcode.org/project/mercury/-/work_items/3592164

AI disclosure

I used Claude to help draft and shorten this text. The findings are from my own test installation.

Comments

joachim namyslo created an issue. See original summary.

joachim namyslo’s picture

Issue summary: View changes

Summary rewritten: shorter, only the finding checked against the current code.