acseo/sylius-translation-plugin
Translation plugin for Sylius.
Maintainers
Package info
github.com/acseo/SyliusTranslationPlugin
Language:Vue
Type:sylius-plugin
pkg:composer/acseo/sylius-translation-plugin
Requires
- php: ^7.2 || ^7.3 || ^8.0
- ext-json: *
- sylius/sylius: ^2.0
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1|^5.0|^6.0
- symfony/debug-bundle: ^3.4|^4.1|^5.0|^6.0
- symfony/dotenv: ^4.2|^5.0|^6.0
- symfony/intl: ^3.4|^4.1|^5.0|^6.0
- symfony/web-profiler-bundle: ^3.4|^4.1|^5.0|^6.0
- symfony/web-server-bundle: ^3.4|^4.1
Suggests
None
Provides
None
Conflicts
- symfony/browser-kit: 4.1.8
- symfony/dependency-injection: 4.1.8
- symfony/dom-crawler: 4.1.8
- symfony/routing: 4.1.8
- symfony/symfony: 4.1.8
Replaces
None
MIT 4f101c2a908f767403ab37fccc0f8d3adcda601e
This package is not auto-updated.
Last update: 2026-06-16 18:02:03 UTC
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/
