pceuropa/yii2-language-selection-widget

Menu dropdown to select languages

1.1.2 2019-12-08 21:09 UTC

This package is auto-updated.

Last update: 2024-12-09 08:19:27 UTC


README

Menu dropdown to select languages Demo

Installation

composer require pceuropa/yii2-language-selection-widget dev-master

Configure

use pceuropa\languageSelection\LanguageSelection;

<?= LanguageSelection::widget([
	'language' => ['pl', 'en', 'fr', 'nl', 'de'],
	'languageParam' => 'language',
	'container' => 'li', // li for navbar, div for sidebar or footer example
	'classContainer' =>  'dropdown-toggle' // btn btn-default dropdown-toggle
]) ?>