Skip to content

Option to download only core translations #43

@VangelisP

Description

@VangelisP

Situation: We regularly create new sites via drush, either for production, staging or development purposes on multiple servers via automations.

Drush is having this behavior on site creation to scan for available translations on the project's translation folder(s). Once it finds them, it does allow you to pickup an installation language other than English to install the site directly, eg. Spanish or French.

At that point, we don't really need to have 3rd party module/theme/profile translations downloaded for ALL those languages (imagine having to add 20-30 languages on the list) but we do want to be able to pickup an installation language other than English, which effectively means that we need to download only the Drupal core translations for those languages declared.

By creating this patch, we are now being allowed to add a parameter on the composer.json file as such: core-only: true so that it will download only the drupal core on the list of declared languages but not the 3rd party modules/themes/profiles.

I have created a PR with a test as well. That PR covers also the basic case of installing drupal-l10n with command-line parameter of --core-only (except using it inside a composer.json file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions