2017 © Pedro Peláez
 

yii2-extension yii2-header-language-selector

Bootstrap class to set application language by header attribute.

image

humandevice/yii2-header-language-selector

Bootstrap class to set application language by header attribute.

  • Friday, March 10, 2017
  • by bizley-code
  • Repository
  • 2 Watchers
  • 1 Stars
  • 263 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

Header Language Selector

Bootstrap class to set application language by header attribute., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist humandevice/yii2-header-language-selector "*"

or add, (*4)

"humandevice/yii2-header-language-selector": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your REST API config:, (*6)

return [
    // ...
    'bootstrap' => [
        // ...
        'languageSelector' => [
            'class' => 'hd\yii2\bootstrap\LanguageSelector',
            'supportedLanguages' => ['en', 'pl'],
            'defaultLanguage' => 'pl'
        ],
    ],
];

The Versions

10/03 2017

dev-master

9999999-dev

Bootstrap class to set application language by header attribute.

  Sources   Download

MIT

The Requires

 

by Hubert Zapała

language yii2 utils header selector

10/03 2017

1.0

1.0.0.0

Bootstrap class to set application language by header attribute.

  Sources   Download

MIT

The Requires

 

by Hubert Zapała

language yii2 utils header selector