<p dir="auto">Given this template, all translations are extracted twice.</p>
<p dir="auto">Once for the correct translation domain (as specified by <code class="notranslate">{% trans_default_domain %}</code> and once wrongly for the default domain. This applies to the current template, its parent and the embedded one.</p>
<div class="highlight highlight-text-html-django notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% extends '::base.html.twig' %}

{% trans_default_domain &quot;users&quot; %}

{% block content_header %}
    &lt;h1&gt;{{ 'heading.create'|trans }}&lt;/h1&gt;
{% endblock %}

{% block content_layout %}
    {# .. #}

    {% embed ':Layout:content_full_size.html.twig'%}
        {% trans_default_domain &quot;users&quot; %}

        {# .. #}
    {% endembed %}
{% endblock %}"><pre class="notranslate"><span class="pl-e">{%</span> <span class="pl-k">extends</span> <span class="pl-s">'::base.html.twig'</span> <span class="pl-e">%}</span>

<span class="pl-e">{%</span> <span class="pl-s">trans_default_domain</span> <span class="pl-s">"users"</span> <span class="pl-e">%}</span>

<span class="pl-e">{%</span> <span class="pl-k">block</span> <span class="pl-s">content_header</span> <span class="pl-e">%}</span>
    &lt;<span class="pl-ent">h1</span>&gt;{{ 'heading.create'|trans }}&lt;/<span class="pl-ent">h1</span>&gt;
<span class="pl-e">{%</span> <span class="pl-k">endblock</span> <span class="pl-e">%}</span>

<span class="pl-e">{%</span> <span class="pl-k">block</span> <span class="pl-s">content_layout</span> <span class="pl-e">%}</span>
    <span class="pl-c">{# .. #}</span>

    <span class="pl-e">{%</span> <span class="pl-s">embed</span> <span class="pl-s">':Layout:content_full_size.html.twig'</span><span class="pl-e">%}</span>
        <span class="pl-e">{%</span> <span class="pl-s">trans_default_domain</span> <span class="pl-s">"users"</span> <span class="pl-e">%}</span>

        <span class="pl-c">{# .. #}</span>
    <span class="pl-e">{%</span> <span class="pl-s">endembed</span> <span class="pl-e">%}</span>
<span class="pl-e">{%</span> <span class="pl-k">endblock</span> <span class="pl-e">%}</span></pre></div>
<p dir="auto">The Form class uses the FormEvent class, which extends the deprecated DataEvent class:<br>
<a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L522">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L522</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if ($dispatcher-&gt;hasListeners(FormEvents::PRE_BIND) || $dispatcher-&gt;hasListeners(FormEvents::BIND_CLIENT_DATA)) {
    $event = new FormEvent($this, $submittedData);
    $dispatcher-&gt;dispatch(FormEvents::PRE_BIND, $event);
    // BC until 2.3
    $dispatcher-&gt;dispatch(FormEvents::BIND_CLIENT_DATA, $event);
    $submittedData = $event-&gt;getData();
}"><pre class="notranslate"><code class="notranslate">if ($dispatcher-&gt;hasListeners(FormEvents::PRE_BIND) || $dispatcher-&gt;hasListeners(FormEvents::BIND_CLIENT_DATA)) {
    $event = new FormEvent($this, $submittedData);
    $dispatcher-&gt;dispatch(FormEvents::PRE_BIND, $event);
    // BC until 2.3
    $dispatcher-&gt;dispatch(FormEvents::BIND_CLIENT_DATA, $event);
    $submittedData = $event-&gt;getData();
}
</code></pre></div>
<p dir="auto">FormEvent should not be used anymore, or it should be marked as being used for backwards compatibility until version 2.3.</p>
<p dir="auto">This came up in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8960916" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6180" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/6180/hovercard" href="https://github.com/symfony/symfony/pull/6180">#6180</a></p>