Download the PHP package kialex/yii2-translation-center without Composer
On this page you can find all versions of the php package kialex/yii2-translation-center. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kialex/yii2-translation-center
More information about kialex/yii2-translation-center
Files in kialex/yii2-translation-center
Package yii2-translation-center
Short Description Transaltion Center for Yii 2.0
License MIT
Homepage http://dev-api.translate.center/api-docs/
Informations about the package yii2-translation-center
Installing via Composer
The recommended way to install Guzzle is through Composer.
Next, run the Composer command to install the latest stable version of Guzzle:
After installing, you need to require Composer's autoloader:
Client configuration ( if you use advanced template )
How to use:
You can mapping console controller to pulling translations ( if you use advanced template )
Attention! This controller uses json storage to keep you transaltion, you should also configure i18n components:
Using Redis as Message Source
- You need define redis component in your common app config
If your redis component ID has another name, you should define it:
-
In the controlle map change storage class to Redis Storage:
- Change message source to Redis
Fetching static resources to default Yii 2 translations:
All versions of yii2-translation-center with dependencies
pervozdanniy/translation-client Version ^2.0
cedx/yii2-json-messages Version ^5.0