Created
November 20, 2021 11:16
-
-
Save cubehrends/bc200bddfecee7da5dc2a90b578163f8 to your computer and use it in GitHub Desktop.
Replacing English month names with German ones in a Twig missing The Intl Extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set d = ( post.date | date( 'j. F Y' ) ) %} | |
<p> | |
{{ d | replace({ | |
'January': 'Januar', | |
'February': 'Februar', | |
'March': 'März', | |
'May': 'Mai', | |
'June': 'Juni', | |
'July': 'Juli', | |
'October': 'Oktober', | |
'December': 'Dezember' | |
}) }} | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment