{% set current_locale = sylius.localeCode %} {% set translation = data.getTranslation(current_locale) %} {% set translation = translation.locale == current_locale ? translation : null %} {% if data.optionValues is empty %} {% if translation is not null and translation.name is not null %} {{ translation.name }} {% else %} {{ ux_icon('tabler:exclamation-circle') }} {{ 'sylius.ui.missing_translation'|trans }} {% endif %} {% else %}
{% set product = data.product %} {{ translation is not null and translation.name is not null ? translation.name : product.name }}
{% for option_value in data.optionValues %}
{{ option_value.value }}
{% endfor %}
{% endif %}