pceuropa / yii2-language-selection-widget
Menu dropdown to select languages
Installs: 6 625
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 0
Open Issues: 0
Type:yii2-extension
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
]) ?>