• Resolved garoman

    (@garoman)


    Hello there,

    I’m using a Twig Template and grabbing a date from my CRM. The code has the following structure:

    {{ record[‘proposedstart’].value | date(“D., j F, H:i”) }}

    which renders something like: Fri., 12 March, 09:00 h. I would like to change the language from English to Spanish. I searched on Twig documentation and found that The format_datetime filter was added in Twig 2.12. (but when I tried to use it on my Twig template it said that this filter isn’t recognized).

    Is there another way to change the date language?

Viewing 1 replies (of 1 total)
  • Plugin Author alexacrm

    (@alexacrm)

    Hi @garoman
    the plugin uses Twig 1.0 and it won’t be possible to bring in the IntlExtension that implements that filter. But thanks for flagging it as we will be bringing the extension in the new plugin that will eventually replace this one – have you looked at it?
    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Change Date Language Format’ is closed to new replies.