https://github.com/hiqdev/yii2-language
Yii2 module for language switching
https://github.com/hiqdev/yii2-language
hacktoberfest
Last synced: 12 months ago
JSON representation
Yii2 module for language switching
- Host: GitHub
- URL: https://github.com/hiqdev/yii2-language
- Owner: hiqdev
- License: bsd-3-clause
- Created: 2016-08-05T20:44:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T15:49:56.000Z (about 5 years ago)
- Last Synced: 2024-11-13T14:52:04.261Z (over 1 year ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 42 KB
- Stars: 10
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2 Language
**Yii2 module for language switching**
[](https://packagist.org/packages/hiqdev/yii2-language)
[](https://packagist.org/packages/hiqdev/yii2-language)
[](https://travis-ci.org/hiqdev/yii2-language)
[](https://scrutinizer-ci.com/g/hiqdev/yii2-language/)
[](https://scrutinizer-ci.com/g/hiqdev/yii2-language/)
[](https://www.versioneye.com/php/hiqdev:yii2-language/dev-master)
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
[yii2]: http://yiiframework.com/
## Installation
The preferred way to install this yii2-extension is through [composer](http://getcomposer.org/download/).
Either run
```sh
php composer.phar require "hiqdev/yii2-language"
```
or add
```json
"hiqdev/yii2-language": "*"
```
to the require section of your composer.json.
## Usage
Example application configuration:
```php
'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](LICENSE).
Read more [here](http://choosealicense.com/licenses/bsd-3-clause).
Copyright © 2016-2017, HiQDev (http://hiqdev.com/)