soap / yii2-language-switcher
Yii language switcher to be used with codemix/yii2-localeurls
Installs: 649
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 1
Type:yii2-widget
Requires
- php: >= 5.4.0
- bower-asset/bootstrap: ^3.3
- codemix/yii2-localeurls: ^1.7
- npm-asset/jquery: ^2.2
- yiisoft/yii2: ~2.0.8
Requires (Dev)
This package is not auto-updated.
Last update: 2024-10-29 00:16:43 UTC
README
Yii2 language switcher to use with codemix/yii2-localeurls.
Thanks to lajax/yii2-language-picker for some code/assets and inspiration.
Installation
Install through composer is the preferable way.
composer require soap/yii2-language-switcher
How to use
First you have to make setting for codemix/yii2-localeurls. Please refer to his document. Then put the widget in your layout.
<?= \soap\LanguageSwitcher\widgets\LanguageSwitcher::widget([ 'skin' => \soap\LanguageSwitcher\widgets\LanguageSwitcher::SKIN_DROPDOWN, 'size' => \soap\LanguageSwitcher\widgets\LanguageSwitcher::SIZE_SMALL ]);