PHPackages                             abenmada/sylius-translation-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. abenmada/sylius-translation-plugin

ActiveSylius-plugin[Localization &amp; i18n](/categories/localization)

abenmada/sylius-translation-plugin
==================================

The plugin enhances the Lexik translation bundle by incorporating a channel-based translation feature and adapting the visual appearance to the back-office theme.

v1.0.3(1y ago)71.3k1MITPHPPHP ^8.0

Since May 4Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ayman-benmada/Sylius-Translation-Plugin)[ Packagist](https://packagist.org/packages/abenmada/sylius-translation-plugin)[ RSS](/packages/abenmada-sylius-translation-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (31)Versions (5)Used By (0)

Sylius Translation Plugin
=========================

[](#sylius-translation-plugin)

 The plugin enhances the [Lexik translation bundle](https://github.com/lexik/LexikTranslationBundle) by incorporating a channel-based translation feature and adapting the visual appearance to the back-office theme.

Details
-------

[](#details)

The displayed locales depend on your channel's configuration. In this example, we have selected French and English.

[![presentation photo](https://github.com/ayman-benmada/Sylius-Translation-Plugin/raw/main/src/Resources/public/image/presentation-1.png?raw=true)](https://github.com/ayman-benmada/Sylius-Translation-Plugin/blob/main/src/Resources/public/image/presentation-1.png?raw=true)

That's why only these two languages are displayed for this channel.

[![presentation photo](https://github.com/ayman-benmada/Sylius-Translation-Plugin/raw/main/src/Resources/public/image/presentation-2.png?raw=true)](https://github.com/ayman-benmada/Sylius-Translation-Plugin/blob/main/src/Resources/public/image/presentation-2.png?raw=true)

You also have a preview page to visualize the number of missing translations for each locale.

[![presentation photo](https://github.com/ayman-benmada/Sylius-Translation-Plugin/raw/main/src/Resources/public/image/presentation-3.png?raw=true)](https://github.com/ayman-benmada/Sylius-Translation-Plugin/blob/main/src/Resources/public/image/presentation-3.png?raw=true)

Important
---------

[](#important)

- The priority of the content to display is as follows: first, the **channel-specific translation**, then, if not provided, the **global translation stored in your database**, and finally, if none are available, the **translation in your translation file**.
- You can manage all translations for your channels on a single page. When you switch between channels, the locales defined for this channel will be displayed.

Installation
------------

[](#installation)

⚠️ Make sure you don't have **ONLY\_FULL\_GROUP\_BY** enabled in your MySQL mode, otherwise remove it! To check the mode, execute the following SQL query: `SELECT @@sql_mode`

Require plugin with composer :

```
composer require abenmada/sylius-translation-plugin
```

Change your `config/bundles.php` file to add the line for the plugin :

```
