<!-- Language selector -->
<ul
    class="dropdown-menu pull-right"
    role="menu"
    data-dropdown-title="<?= e(trans('rainlab.translate::lang.locale.select_label')) ?>">
    <?php foreach ($locales as $code => $name): ?>
        <li role="presentation">
            <a
                role="menuitem"
                tabindex="-1"
                data-switch-locale="<?= $code ?>"
                href="javascript:;">
                <?= $name ?>
            </a>
        </li>
    <?php endforeach ?>
</ul>