trainbrain / yii2-module-languages
Language module for Catalog on Yii2
dev-main
2025-07-05 12:39 UTC
Requires
- php: >=5.4.0
- codemix/yii2-localeurls: ^1.5
- kartik-v/yii2-checkbox-x: *
- kartik-v/yii2-widget-alert: *
- yiisoft/yii2: ^2.0.13
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2025-07-06 11:14:03 UTC
README
Installation
The preferred way to install this extension is through composer.
Add to composer.json
"repositories": [
{
"type": "vcs",
"url": "git@gitlab.com:branchup/yii2-module-languages.git"
}
]
Either run
composer require "branchup/yii2-module-languages":"dev-master"
Or add to required
"branchup/yii2-module-languages": "dev-master"
to the require section of your composer.json file
Configuration
Add to frontend config
'components' => [
'languageManager' => [
'class'=>'branchup\language\components\LanguageManager',
]
]
'urlManager' => [
'class' => 'codemix\localeurls\UrlManager',
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
// ...
]
]
Add to backend config
'modules' => [
'language' => [
'class' => 'branchup\language\Module',
],
]
Run console command or create self migration
php yii migrate --migrationPath=@vendor/branchup/yii2-module-languages/migrations
Usage
Backend
/language
- Language managment