Init assets for use jquery-i18next and i18next for Yii2 framework
Add github repository to composer.json file
"repositories": [
{
"type": "git",
"url": "https://github.com/alien-art/yii2-jquery-i18next.git"
}
]
and then
php composer.phar require --prefer-dist "alien/yii2-jquery-i18next" "*"
To use an asset bundle, register it with a view by calling the [[yii\web\AssetBundle::register()]] method. For example, in a view template you can register an asset bundle like the following:
use alien\jquery_i18next\assets\JqueryI18NextAsset; //for use jquery-i18next
...
JqueryI18NextAsset::register($this); // $this represents the view object
use alien\jquery_i18next\assets\I18NextAsset;
...
I18NextAsset::register($this); // $this represents the view object