{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as translator %} {% block toolbar %} {% if collector.messages|length %} {% set icon %} {% if collector.countMissings %} {% set status_color = "red" %} {% elseif collector.countFallbacks %} {% set status_color = "yellow" %} {% endif %} {% set error_count = collector.countMissings + collector.countFallbacks %} {{ error_count ?: collector.countdefines }} {% endset %} {% set text %} {% if collector.countMissings %}
Missing messages {{ collector.countMissings }}
{% endif %} {% if collector.countFallbacks %}
Fallback messages {{ collector.countFallbacks }}
{% endif %} {% if collector.countdefines %}
Defined messages {{ collector.countdefines }}
{% endif %} {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } %} {% endif %} {% endblock %} {% block menu %} Translation {% endblock %} {% block panel %} {% if collector.messages is empty %}

Translations

No translations have been called.

{% else %} {{ block('panelContent') }} {% endif %} {% endblock %} {% block panelContent %}

Translation Stats

Defined messages
{{ collector.countdefines }}
Fallback messages
{{ collector.countFallbacks }}
Missing messages
{{ collector.countMissings }}
{% for message in collector.messages %} {% endfor %}
State Locale Domain Id Message Preview
{{ translator.state(message) }} {{ message.locale }} {{ message.domain }} {{ message.id }} {% if message.count > 1 %}
(used {{ message.count }} times){% endif %}
{{ message.translation }}
{% endblock %} {% macro state(translation) %} {% if translation.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %} same as fallback {% elseif translation.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING') %} missing {% endif %} {% endmacro %}