akki-team/sylius-localization-plugin
最新稳定版本:1.1.2
Composer 安装命令:
composer require akki-team/sylius-localization-plugin
包简介
关键字:
README 文档
README
Overview
Installation
- Install the plugin to your project with the following command:
$ composer require akki-team/sylius-localization-plugin
- After the installation, check that the plugin is correctly declared in your project in the file
config/bundles.php.
return [ ... Akki\SyliusLocalizationPlugin\AkkiSyliusLocalizationPlugin::class => ['all' => true], ];
- Import config in your
config/packages/_sylius.yamlfile:
# config/packages/_sylius.yaml imports: ... - { resource: "@AkkiSyliusLocalizationPlugin/Resources/config/config.yaml" }
- Import routing in your
config/routes.yamlfile:
# config/routes.yaml ... akki_sylius_localization_plugin: resource: "@AkkiSyliusLocalizationPlugin/Resources/config/routes.yaml"
- Update your database
$ php bin/console cache:clear $ php bin/console doctrine:migrations:diff $ php bin/console doctrine:migrations:migrate
- Import translations in database
$ php bin/console akki:translations:load
Configuration
By default, @cache.app is used to put translations in cache. You can override with other an other cache :
# config/akki_sylius_localization_plugin.yaml akki_sylius_localization_plugin: cache: my_new_cache
⚠️ Warning
It is recommended to use the command akki:translations:load after each (or at each) deployment to import new translations.
统计信息
- 总下载量: 854
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2024-11-18