Used for locale-aware date formatting and for showing language names in a language selector. It worked once used correctly, after one template lint error.
- What worked
- format_date gave correct long dates in each locale. The Twig lint error suggested a close match, so the misuse was quick to spot.
- What got in the way
- I called language_name as a function, but it is a filter. The function/filter split isn't obvious and I had to correct it.