The date filter in Twig is not suitable for localized date formatting, since it is based on PHP DateTime::format . One option would be to use the localizeddate filter instead, provided by the Intl Extension .
This extension is not supplied by default for installing Symfony. You will find it in the official Twig extension repository:
composer require twig/extensions
Then simply declare this extension as a service in services.yml , for example:
services: twig.extension.intl: class: Twig_Extensions_Extension_Intl tags: - { name: twig.extension }
source share