lajax/yii2-language-picker

Language picker into navbar

FedericoBenedetti1976 opened this issue · 2 comments

Hi, great job. I'm asking if there's a way to include the language-picker into the navbar.

Thank's

You can insert the widget inside the navbar, if you wrap the widget into an element with "navbar-text".

Example:

<div class="navbar-text pull-right">
    <?= 
        \lajax\languagepicker\widgets\LanguagePicker::widget([
            'skin' => \lajax\languagepicker\widgets\LanguagePicker::SKIN_DROPDOWN,
            'size' => \lajax\languagepicker\widgets\LanguagePicker::SIZE_LARGE
        ]);
    ?>
</div>

lp

I hope this is what you meant.

lajax commented

Thanks!