acseo/sylius-translation-plugin
最新稳定版本:v4
Composer 安装命令:
composer require acseo/sylius-translation-plugin
包简介
Translation plugin for Sylius.
关键字:
README 文档
README
The main goal of this plugin is to enable you to edit translation phrases, without having to manually create or modify translation files on the server. This plugin allows you to change any phrase that is in Silyus in admin panel. All custom translations are saved in the xliff format.
In the admin panel view for each locale (enabled in the Sylius) shows how many messages have been translated, how many are left and translation progress.
Installation
$ composer require acseo/sylius-translation-plugin
Register bundle:
# config/bundles.php Yaroslavche\SyliusTranslationPlugin\YaroslavcheSyliusTranslationPlugin::class => ['all' => true],
Import services:
# config/services.yaml imports: # ... - { resource: "@YaroslavcheSyliusTranslationPlugin/Resources/config/services.yml" }
Import routing
# config/routes.yaml yaroslavche_sylius_translation_plugin: resource: "@YaroslavcheSyliusTranslationPlugin/Resources/config/admin_routing.yml"
Add twig_hook in v2 :
sylius_twig_hooks: hooks: 'sylius_admin.base#stylesheets': app_styles: template: 'admin/stylesheets.html.twig' 'sylius_admin.base#javascripts': app_javascripts: template: 'admin/javascripts.html.twig' 'sylius_shop.base#stylesheets': app_styles: template: 'shop/stylesheets.html.twig' 'sylius_shop.base#javascripts': app_javascripts: template: 'shop/javascripts.html.twig' 'sylius_admin.translation.index': sidebar: template: '@SyliusAdmin/shared/crud/common/sidebar.html.twig' priority: 200 navbar: template: '@SyliusAdmin/shared/crud/common/navbar.html.twig' priority: 100 content: template: '@YaroslavcheSyliusTranslationPlugin/translation.html.twig' priority: 0
Install assets and clear cache.
$ yarn build $ bin/console assets:install $ bin/console cache:clear
see on /admin/translation/
统计信息
- 总下载量: 892
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-11

