{% load i18n template_content_tags %} {% if content_definition and content_definition.type == 'image' %} {% if primary_locale_content %}
{% else %}
{% trans 'There is no image that needs to be translated.' %}
{% endif %} {% elif content_definition and content_definition.type == 'component' %} {% if primary_locale_content %}
{% get_component_preview_text localized_template_content content_key primary_locale_content %}
{% trans 'show' %}
{% else %}
{% trans 'There is no component that needs to be translated.' %}
{% endif %} {% else %}
{% if primary_locale_content %} {{ primary_locale_content|safe }} {% endif %}
{% endif %}