asdoria/sylius-locale-switcher-plugin 问题修复 & 功能扩展

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

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

asdoria/sylius-locale-switcher-plugin

最新稳定版本:0.1.2

Composer 安装命令:

composer require asdoria/sylius-locale-switcher-plugin

包简介

A change locale plugin for sylius

README 文档

README

Asdoria Lgoo

Asdoria Locale Switcher Plugin

This plugin allows you to change locale in sylius shop while keeping the page you are on.

Features

  • Change the locale of the store and don't redirect to home.

Locale switcher plugin

Installation

  1. run composer require asdoria/sylius-locale-switcher-plugin
  2. Add the bundle in config/bundles.php. You must put the LocaleSwitcher Plugin line ABOVE TwigBundle
Asdoria\SyliusLocaleSwitcherPlugin\AsdoriaSyliusLocaleSwitcherPlugin::class => ['all' => true],
[...]
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
  1. Import config in config/packages/_sylius.yaml
imports:
    - { resource: "@AsdoriaSyliusLocaleSwitcherPlugin/Resources/config/config.yaml"}
  1. Copy the template overrides from the bundle directory
From: [shop_dir] vendor/asdoria/sylius-locale-switcher-plugin/src/Resources/views/bundles/SyliusShopBundle/*
To: [shop_dir] templates/bundles/SyliusShopBundle/*

统计信息

  • 总下载量: 6.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-02