Pimcore Localized Assets
not-reviewed
Digital Asset Management
DetailsPimcore Localized Assets
Digital Asset Management
Zusammenfassung
Pimcore Bundle to localize your assets paths with same file.
Readme
Localized assets in Pimcore
Pimcore Bundle to localize your assets with same file.
Installation
composer require lemonmind/pimcore-localized-assets
bin/console pimcore:bundle:enable PimcoreLocalizedAssetsBundle
bin/console pimcore:bundle:install PimcoreLocalizedAssetsBundle
After installation predefined assets metadata definitions with name "localized_asset_name" should be visible. Each language should has its own entity.
Usage
In specific asset in "Custom Metadata" add predefined metadata from "Localized Assets Bundle" group. Then add values that should be replaced from original name.
So for example if asset has default path /images/tree.jpg on spanish page it will be replaced with /images/bosque.jpg.
It works in documents and data objects also with thumbnails.
Run phpstan and php-cs-fixer
There is prepared a composer script to run both phpstan and php-cs-fixer.
composer fix