You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rms-support-letter.github.io/_includes/translations.html

12 lines
471 B

<div class="translations">
<p>Translations:</p>
<a class="translation" href='/'>🇺🇸</a>
{% for translation in site.translations %}
<a class="translation" href="{{ translation.url }}">
{%- assign langcode = translation.locale | split: "_" | last | downcase -%}
{%- assign c1 = langcode | slice: 0, 1 -%}
{%- assign c2 = langcode | slice: 1, 1 -%}
{{- site.data.emoji[c1] -}}{{- site.data.emoji[c2] -}}
</a>
{% endfor %}
</div>