{% macro translations_for(article) %} {% if article.translations %}
This post is also available in: {% for translation in article.translations|sort(attribute = 'lang') %} {{ translation.lang }}{% if loop.index0 + 2 == loop.length %} and{% elif not loop.last %}, {% endif %} {% endfor %}
{% endif %} {% endmacro %}