hiqdev / yii2-language
Yii2 module for language switching
Installs: 25 477
Dependents: 5
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 3
Open Issues: 1
Type:yii2-extension
Requires
- hiqdev/yii2-menus: *@dev
- hiqdev/yii2-thememanager: *@dev
Requires (Dev)
- hiqdev/hidev-hiqdev: <2.0
- hiqdev/hidev-php: <2.0
This package is auto-updated.
Last update: 2024-12-08 23:22:08 UTC
README
Yii2 module for language switching
This Yii2 extension provides language switching module.
This extension provides:
- module with controller and language select action
- auto detection of acceptable languages
- saving selected language to cookie
- widget for displaying language selection menu
Installation
The preferred way to install this yii2-extension is through composer.
Either run
php composer.phar require "hiqdev/yii2-language"
or add
"hiqdev/yii2-language": "*"
to the require section of your composer.json.
Usage
Example application configuration:
'modules' => [ 'language' => [ 'class' => \hiqdev\yii2\merchant\Module::class, 'languages' => [ 'en' => 'English', 'ru' => 'Русский', ], ], ],
License
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2016-2017, HiQDev (http://hiqdev.com/)