veilid-dot-com/themes/veilid/layouts/partials/languages.html.twig

8 lines
300 B
Twig
Raw Normal View History

2023-08-15 15:25:21 -04:00
{#- Language switcher -#}
{%- if page.translations|default({})|length >= 1 -%}
{%- for p in page.translations -%}
{%- if p.language is defined -%}
<a href="{{ url(p) }}">{{ site.language.name(p.language) }}</a>{% if not loop.last %}, {% endif %}
{%- endif -%}
{%- endfor -%}
{%- endif -%}