Yii2 module for language switching
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/readme
src
tests
.gitignore
.php_cs
.scrutinizer.yml
.travis.yml
CHANGELOG.md
LICENSE csfixed Jan 16, 2017
README.md csfixed May 6, 2017
chkipper.json
composer.json renamed config `web` <- hisite May 6, 2017
hidev.yml
history.md
phpunit.xml.dist
version version bump to 0.1.0 May 6, 2017

README.md

Yii2 Language

Yii2 module for language switching

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality Dependency Status

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/)