{% set translationOptions = {} %} {% if node.nodeTranslations(true) is not empty %} {% for translation in node.nodeTranslations(true) %} {% if translation.lang != nodeVersion.nodeTranslation.lang %} {% set translationOptions = translationOptions|merge({(translation.lang): translation.id}) %} {% endif %} {% endfor %} {% endif %} {% if translationOptions is not empty %} {% endif %}