Add translation of month in Calendar view

Created on 30 August 2024, 5 months ago
Updated 1 September 2024, 5 months ago

I need to show both day number and month name, e.g. "28 Aug", but I need month name localized.

Steps to reproduce

I tweaked calendar-view-day.html.twig and now I have

{{ timestamp|date('j M') }}

in {% block day_number %}. Problem is that I get "Aug" (English) instead of "Ago" (Italian - site is set to Italian in /admin/config/regional/language ). Any hint? Thanks in advance!!

🐛 Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

🇮🇹Italy ggamba Milano

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

Comments & Activities

Production build 0.71.5 2024