mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-02 23:16:13 +00:00
enable twig intl extension
This extension allow bundles to format date and number according to localization. We would like to use this to format date : ``` twig date|localizeddate('medium', none) ``` refs #272 [documentation of the extension](http://twig.sensiolabs.org/doc/extensions/intl.html)
This commit is contained in:
parent
8f457e0a63
commit
5f117ffa4a
@ -23,6 +23,11 @@ services:
|
||||
- [setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
twig_intl:
|
||||
class: Twig_Extensions_Extension_Intl
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.form.type.translatable.string:
|
||||
class: Chill\MainBundle\Form\Type\TranslatableStringFormType
|
||||
|
Loading…
x
Reference in New Issue
Block a user