Download the PHP package abenmada/sylius-translation-plugin without Composer
On this page you can find all versions of the php package abenmada/sylius-translation-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abenmada/sylius-translation-plugin
More information about abenmada/sylius-translation-plugin
Files in abenmada/sylius-translation-plugin
Package sylius-translation-plugin
Short Description The plugin enhances the Lexik translation bundle by incorporating a channel-based translation feature and adapting the visual appearance to the back-office theme.
License MIT
Informations about the package sylius-translation-plugin
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.
Details
The displayed locales depend on your channel's configuration. In this example, we have selected French and English.
That's why only these two languages are displayed for this channel.
You also have a preview page to visualize the number of missing translations for each locale.
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
⚠️ 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:
Require plugin with composer :
Change your config/bundles.php
file to add the line for the plugin :
Then create the config file in config/packages/abenmada_translation_plugin.yaml
:
Then import the routes in config/routes/abenmada_translation_plugin.yaml
:
Update the entity src/Entity/Channel/Channel.php
:
Run the migration :
Install the assets :
import translations files content into your database :
Managing locales
- The default supported locales are: English (en), French (fr), Arabic (ar), German (de), Spanish (es), Polish (pl), Portuguese (pt), and Italian (it).
- You can adjust your language settings through the provided configuration options :