Is it possible to loop through locales? Is it possible to loop through locales? For example:

{% locale in craft.locales %}
    {# get link for each locale available #}
    &lt;a href="{{ locale.getUrl }}"&gt;{{ locale.title }}&lt;/a&gt;
{% endfor %}
You can try to use the following code to loop through the locales:

{% set locales = craft.i18n.getSiteLocaleIds()%}

{% for locale in locales %}
    {% set localeEntry = craft.entries.id(entry.id).locale(locale).first %}
    &lt;a href="{{ localeEntry.getUrl() }}"&gt;{{ localeEntry.title }}&lt;/a&gt;
{% endfor %}


A full solution for a language switcher is described under How can I build a language switcher?