akki-team/sylius-localization-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

akki-team/sylius-localization-plugin

最新稳定版本:1.1.2

Composer 安装命令:

composer require akki-team/sylius-localization-plugin

包简介

README 文档

README

Overview

Installation

  1. Install the plugin to your project with the following command:
$ composer require akki-team/sylius-localization-plugin
  1. 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],
];
  1. Import config in your config/packages/_sylius.yaml file:
# config/packages/_sylius.yaml

imports:
    ...
    
    - { resource: "@AkkiSyliusLocalizationPlugin/Resources/config/config.yaml" }
  1. Import routing in your config/routes.yaml file:
# config/routes.yaml
...

akki_sylius_localization_plugin:
  resource: "@AkkiSyliusLocalizationPlugin/Resources/config/routes.yaml"
  1. Update your database
$ php bin/console cache:clear
$ php bin/console doctrine:migrations:diff
$ php bin/console doctrine:migrations:migrate
  1. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-11-18