{% macro translate(content, sub_destination=None) -%}
{% if content.translations %}
Also available in:
{% for translation in content.translations %}
{% if sub_destination %}
{% if sub_destination.endswith('/') %}
sub_destination = sub_destination[:-1]
{% endif %}
{{ translation.lang }}
{% else %}
{{ translation.lang }}
{% endif %}
{% endfor %}
{% endif %}
{%- endmacro %}