From e8db70cea367004515aa0e2ba3447481c8e4ba96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Fri, 8 Mar 2024 11:55:20 +0200 Subject: [PATCH] UHF-9088: Added override flag to helfi:locale-import to actually override the translations. --- src/Commands/LocaleCommands.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Commands/LocaleCommands.php b/src/Commands/LocaleCommands.php index bbd03698..56a72a96 100644 --- a/src/Commands/LocaleCommands.php +++ b/src/Commands/LocaleCommands.php @@ -136,7 +136,11 @@ public function import(string $module) { $process = $this->processManager()->process([ 'drush', 'locale:import', - '--type=customized', + // Include only not-customized strings. Meaning, do not override + // config translations, but override localize.drupal.org translations. + '--type=not-customized', + // Override existing translations as customized translations. + '--override=customized', $language->getId(), $file->uri, ]);