Description
Hello,
I just made a new composer plugin to download Drupal localization files using composer. The structure comes from drupal-scaffold.
Here is the repository: https://github.com/FlorentTorregrosa/drupal-l10n
Here is an usage example: FlorentTorregrosa/docker-drupal-project@183a92c
Why this plugin? (https://github.com/FlorentTorregrosa/drupal-l10n/blob/master/README.md#usage)
This plugin is useful when you want to package your project and then deploy this package on a target environment and that this environment does not have access to a localization servers. So you have to prepare the translations before deploying.
It avoids you to have to put the localization files under your VCS or to have a local site to download the translations.
So does the drupal-composer group would like to incorporate it or should it stay on my Github account?
In TODO I have to:
- Implement proper Composer events, currently only the download method works.
- Implement tests
- Display the name of the file that is downloaded (I have the same problem with drupal-scaffold, the filename is not displayed)
Thanks for your reply.