I have PHP 5.5.9 and I activated php_intl.dll
exyention and set its configuration in the active php.ini as the following:
[intl]
intl.default_locale = ar
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
;intl.error_level = E_WARNING
When I try the following twig code:
{{ item.get_date('j F Y | g:i a')|localizeddate('medium', 'none', locale) }}
I got a fatal error:
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'The filter "localizeddate" does not exist in "index.html" at line 53' in
The official documentation there does not show how to install or add this filter to twig. I use simple PHP application without Symfony. The twig version 1.16.0