title: Symfony2.8 get locale in form types
body: <p>How can I get the locale in a typeform?</p>
  
  <p>This is in my controller:</p>
  
  <pre><code>$form = $this-&gt;createForm(new ConfiguratorClientType(), $configuratorClient);
  </code></pre>
  
  <p>I have this in my form builder:</p>
  
  <pre><code>-&gt;add('language',
      EntityType::class,
      array(
          'class' =&gt; 'CommonBundle:Language',
          'choice_label' =&gt; function ($language) {
              return $language-&gt;getName()[$locale];
          },
          'attr' =&gt; array(
              'class' =&gt; 'form-control'
          )
      )
  )
  </code></pre>
  
  <p>but I cant figure out how to get the locale in there.</p>