black-lamp/yii2-locale

There is no license information available for the latest version (0.8) of this package.

Yii2 url manager with supporting multi languages.

Installs: 651

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 5

Forks: 0

Open Issues: 0

Type:yii2-extension

0.8 2019-06-22 11:22 UTC

This package is not auto-updated.

Last update: 2024-12-21 20:52:12 UTC


README

'components' => [
  ...
    'urlManager' => [
        'class' => 'bl\locale\UrlManager',
        languageProvider' => [
            'class' => 'bl\locale\provider\DbLanguageProvider',
            'db' => 'db2',
            'table' => 'language',
            'localeField' => 'lang_id',
            'languageCondition' => ['active' => true],
        ],
        'lowerCase' => true,
        'useShortSyntax' => true,
        'languageKey' => 'language',
        'showDefault' => false,
      ],
]