vaszloy/yii2-i18n-yarcode
最新稳定版本:1.11.1
Composer 安装命令:
composer require vaszloy/yii2-i18n-yarcode
包简介
Yii2 i18n module to manage project translation
README 文档
README
Yii2 i18n(internationalization) module to manage project translation.
This is fork of zelenin/yii2-i18n-module with more useful interface.
##Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require vaszloy/yii2-i18n-yarcode "dev-master"
or add
"vaszloy/yii2-i18n-yarcode": "dev-master"
to the require section of your composer.json
##Usage
Configure i18n component in your config file(for advanced application, use common config)
'components' => [ ..., 'i18n' => [ 'class' => vaszloy\i18n\components\I18N::className(), 'languages' => [ 'en-EN' => 'English', 'es-ES' => 'Español', 'ru-RU' => 'Русский', ], 'defaultLanguage' => 'en-EN', 'on missingTranslation' => ['vaszloy\i18n\Module', 'missingTranslation'] ], ... ]
And connect module at backend application:
'modules' => [ ..., 'i18n' => vaszloy\i18n\Module::className(), ... ]
Run migration:
php yii migrate --migrationPath=@vendor/yii-dream-team/yii2-i18n-yarcode/src/migrations
Go to http://backend.yourdomain.com/translations for translating your messages
##Authors
Valentin Konusov, e-mail: rlng-krsk@yandex.ru
统计信息
- 总下载量: 2.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-30