district09/robo-digipolis-drupal8

Localised strings (translations) are not updated during deploy when using Drush 9 & Drupal 8.4.x

zero2one opened this issue · 0 comments

Problem

The update process checks, by getting a list of installed modules, if the locale module is installed.
This by performing a grep on the output of the drush pml command.

drush pml --core --fields=name --status=enabled --type=module --format=list

Output Drush 8:

Image (image)
List (list)
Locale (locale)
Menu (menu)
Node (node)

Output Drush 9 (This version has an extra field option display_name):

image
language
link
locale
menu_link_content
menu_ui
node
options

Solution

Add a helper function to get if a module is enabled (in DrushStack?). And build in the logic to support both Drush 8.x & 9.x.