- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Is there any way we can exclude this one special filter here, until this can be resolved in core (if ever)?
https://git.drupalcode.org/project/twig_intl/-/blob/1.0.x/twig_intl.serv...I think other ways wouldn't make much sense, as it's only this one special conflict...
- 🇩🇪Germany Gogowitsch
Since for me, only the core twig file
locale-translation-update-info.html.twig
caused the problem, I copied it to my custom theme and changed the date format call toformat_date('short')
- 🇮🇳India arunkumark Coimbatore
I hope the issue is not with the Drupal core
format_date()
twig extension. Till TWIG version 2.12 the format_date() is part of default. But on TWIG version >2.12 and 3.x version,format_date()
extension is removed from the default and added into theIntlExtension
. The IntlExtension needs to be installed separately to access the additional extensions.
https://twig.symfony.com/doc/2.x/filters/format_date.html
https://twig.symfony.com/doc/3.x/filters/format_date.htmlIn Nov 16, 2019, TWIG 3.0.0 has been released officially. Also, the support for 2.x has been stopped in December 2023. So, do we need to make any changes in the core? to support the Twig IntlExtension → .
In Drupal 10.x and 11.x versions we are using the TWIG 3 version. The change log https://www.drupal.org/node/3256890 →
If it is necessary to make a change to the core. Please use the below patch that will replace
format_date
intodate_format
.