{{ form_open({ class: 'my-2 my-lg-0' }) }}
<select name="locale" data-request="onSwitchLocale" class="form-control locale-picker border-0 bg-dark text-light">
    {% for code, name in locales %}
        <option value="{{ code }}" {{ code == activeLocale ? 'selected' }} class="bg-light text-dark">{{ name }}</option>
    {% endfor %}
</select>
{{ form_close() }}

