teamneusta / pimcore-translation-migration-bundle
Migrates Symfony translations to Pimcore
Package info
github.com/teamneusta/pimcore-translation-migration-bundle
Type:pimcore-bundle
pkg:composer/teamneusta/pimcore-translation-migration-bundle
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
- pimcore/pimcore: ^11.5 || ^12.0
- symfony/console: ^5.4 || ^6.0
- symfony/finder: ^5.4 || ^6.0
- symfony/framework-bundle: ^5.0 || ^6.0
- symfony/yaml: ^5.0 || ^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.60
- phpspec/prophecy: ^1.11
- phpspec/prophecy-phpunit: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.9
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.5
- pimcore/admin-ui-classic-bundle: ^1.0 || ^2.0
- spatie/phpunit-snapshot-assertions: ^4.2
- symfony/filesystem: ^5.4 || ^6.0
- teamneusta/pimcore-testing-framework: ^0.13
Conflicts
README
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).
Installation
-
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],
Usage
This bundle provides a Symfony command that just executes the migration.
bin/console neusta:translations:migrate
For an example of how to use it, look at the documentation.
Configuration
There is no configuration available.
Contribution
Feel free to open issues for any bug, feature request, or other ideas.
Please remember to create an issue before creating large pull requests.
Local Development
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.yaml
And replace all replace_with_secret values with your data.
Then install the dependencies:
bin/composer install
We 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 phpstan
For the tests there is a different script that includes a database setup.
bin/run-tests