Datetime tokens not translated

Created on 25 May 2024, 5 months ago

I'm using Automatic Label and Pathauto to generate patterns for my content from a date field. The problem is that it always ends up being in English, while my site is Dutch only. The following token shows the month of my field in English, but it should be in Dutch.

[node:field_maand:date:custom:F]

I noticed that smart date range fields don't suffer from this issue. The following token renders the pattern in Dutch, just like I would expect it to. In the "available tokens" window, it is also correctly translated.

[node:field_datum:value-format:month_and_day]
I don't need a range for all my date fields, so I can't use this as a solution, but it indicates that it's a problem in core I guess?

Drupal version : 10.2.6
PHP version : 8.2.12

πŸ’¬ Support request
Status

Active

Version

10.2 ✨

Component
DatetimeΒ  β†’

Last updated about 1 hour ago

Created by

πŸ‡§πŸ‡ͺBelgium mowgli4811

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

Comments & Activities

Production build 0.71.5 2024