<ul>
    {% for locale in locales %}

        {% set title = ('locale.' ~ locale)|trans({}, 'messages', locale) %}

        <li>
            {% if locale == app.request.locale %}
                <span>{{ title }}</span>
            {% else %}
                <a href="{{ path('darvin_content_locale_switch', {'locale': locale}) }}">{{ title }}</a>
            {% endif %}
        </li>
    {% endfor %}
</ul>

<ul>
    {% for locale in locales %}

        {% set title = ('locale.' ~ locale)|trans({}, 'messages', locale) %}

        <li>
            {% if locale == app.request.locale %}
                <span>{{ title }}</span>
            {% else %}
                <a href="{{ path('darvin_content_locale_switch', {'locale': locale}) }}" rel="nofollow">{{ title }}</a>
            {% endif %}
        </li>
    {% endfor %}
</ul>

Add "nofollow" to locale switcher links.
Add "nofollow" to locale switcher links.
