acseo/sylius-translation-plugin

Translation plugin for Sylius.

dev-main 2024-07-11 14:32 UTC

This package is not auto-updated.

Last update: 2024-12-13 14:53:41 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.

v0.3.0

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.

v0.3.0

See in action on youtube:

IMAGE ALT TEXT HERE

Installation

$ composer require yaroslavche/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"

Install assets and clear cache.

$ yarn build
$ bin/console assets:install
$ bin/console cache:clear

see on /admin/translation/