- Issue created by @andre.bonon
- Merge request !20#3536422: Get the pattern/format string translation langcode is not empty and... → (Open) created by andre.bonon
The intl_format_date_pattern() Twig extension does not return the translated date pattern when a langcode parameter is provided.
For example, assume you have a format key custom_short_month with the following translations:
Calling intl_format_date_pattern('custom_short_month', 'fr') is expected to return the French version of the pattern, but instead it returns the default English version (MMM d, YYYY), ignoring the provided langcode.
This behavior makes it impossible to properly localize date formatting in Twig templates.
Active
1.1
Code