title: Symfony 4: use localizeddate
body: <p>I am trying to use <code>localizeddate</code> to show a date in French on my website:</p>
  
  <pre><code>&lt;td&gt;{{ saison.start|localizeddate('medium', 'none') }}&lt;/td&gt;
  </code></pre>
  
  <p>I followed the various documentations and:</p>
  
  <ul>
  <li>I installed the PHP Intl extension: <code>sudo pacman -S php-intl</code></li>
  <li>I installed Twig extensions on Symfony: <code>composer require twig/extensions</code></li>
  <li>As well in Intl extension: <code>composer require symfony/intl</code></li>
  </ul>
  
  <p>I also edited <code>config/services.yaml</code> to change the locale, but it does not seem to have an effect:</p>
  
  <pre><code>parameters:
      locale: 'fr'
  </code></pre>
  
  <p>I enabled Date and Intl extensions in files <code>config</code>packages\twig_extensions.yaml`:</p>
  
  <pre><code>services:
      _defaults:
          public: false
          autowire: true
          autoconfigure: true
  
      # Uncomment any lines below to activate that Twig extension
      #Twig\Extensions\ArrayExtension: ~
      Twig\Extensions\DateExtension: ~
      Twig\Extensions\IntlExtension: ~
      #Twig\Extensions\TextExtension: ~
  </code></pre>
  
  <p>But I still have the date shown in english in the output file.</p>
  
  <p>I also tried to specify more clearly the locale in <code>localizeddate</code> like this:</p>
  
  <pre><code>&lt;td&gt;{{ saison.start|localizeddate('medium', 'none', 'fr') }}&lt;/td&gt;
  </code></pre>
  
  <p>But in this case I get an error:</p>
  
  <blockquote>
    <p>An exception has been thrown during the rendering of a template ("The Symfony\Component\Intl\DateFormatter\IntlDateFormatter::__construct() method's argument $locale value 'fr' behavior is not implemented. Only the locale "en" is supported. Please install the "intl" extension for full localization capabilities.").</p>
  </blockquote>
  
  <p>I don't know what is missing.</p>