trainbrain/yii2-module-languages

Language module for Catalog on Yii2

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension

dev-main 2025-07-05 12:39 UTC

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