Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[TwigBridge][Translation] TwigExtractor duplicates with trans_default_domain #6943

@havvg

Description

@havvg

Given this template, all translations are extracted twice.

Once for the correct translation domain (as specified by {% trans_default_domain %} and once wrongly for the default domain. This applies to the current template, its parent and the embedded one.

{% extends '::base.html.twig' %}

{% trans_default_domain "users" %}

{% block content_header %}
    <h1>{{ 'heading.create'|trans }}</h1>
{% endblock %}

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

    {% embed ':Layout:content_full_size.html.twig'%}
        {% trans_default_domain "users" %}

        {# .. #}
    {% endembed %}
{% endblock %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions