This bundle combines the advantages of Symfony translation files and translations in the Pimcore Admin Backend.
This bundle reads standard symfony translation files and migrates them to Pimcore translations. Changed Pimcore translations are not overwritten (compared creationDate and modificationDate).
-
Require the bundle
composer require teamneusta/pimcore-translation-migration-bundle
-
Enable the bundle
Add the Translation Migration Bundle to your
config/bundles.php:Neusta\Pimcore\TranslationMigrationBundle\NeustaPimcoreTranslationMigrationBundle::class => ['all' => true],
This bundle provides a Symfony command that just executes the migration.
bin/console neusta:translations:migrateFor an example of how to use it, look at the documentation.
There is no configuration available.
Feel free to open issues for any bug, feature request, or other ideas.
Please remember to create an issue before creating large pull requests.
To develop on your local machine, instance identification for Pimcore 12 is needed.
Copy the compose.override.yaml.dist file to compose.override.yaml:
cp -n compose.override.yaml.dist compose.override.yamlAnd replace all replace_with_secret values with your data.
Then install the dependencies:
bin/composer installWe use composer scripts for our main quality tools. They can be executed via the bin/composer file as well.
bin/composer cs:fix
bin/composer phpstanFor the tests there is a different script that includes a database setup.
bin/run-tests