Skip to content

Commit 41b37d9

Browse files
committed
Cleaned up commands
1 parent ac163ac commit 41b37d9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Taskfile.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,15 +282,16 @@ tasks:
282282

283283
translations:import:
284284
cmds:
285-
- task compose -- exec phpfpm bash -c '(cd web && ../vendor/bin/drush locale:import --type=customized --override=all da ../translations/custom-translations.da.po)'
286-
- task drush -- php:eval "var_export(\Drupal::state()->get('locale.translation.formulae', []))"
287-
- 'task drush -- php:eval "var_export(array_map(static fn (\$count) => (new \Drupal\Core\StringTranslation\PluralTranslatableMarkup(\$count, ''1 item'', ''@count items'', options: [''langcode'' => ''da'']))->render(), range(0, 5)));"'
288-
- 'task drush -- php:eval "var_export(array_map(static fn (\$count) => (new \Drupal\Core\StringTranslation\PluralTranslatableMarkup(\$count, ''1 item'', ''@count items'', options: [''langcode'' => ''en'']))->render(), range(0, 5)));"'
285+
- task drush -- locale:import --type=not-customized --override=not-customized da ../translations/custom-translations.da.po
286+
# - task drush -- php:eval "var_export(\Drupal::state()->get('locale.translation.formulae', []))"
287+
# - 'task drush -- php:eval "var_export(array_map(static fn (\$count) => (new \Drupal\Core\StringTranslation\PluralTranslatableMarkup(\$count, ''1 item'', ''@count items'', options: [''langcode'' => ''da'']))->render(), range(0, 5)));"'
288+
# - 'task drush -- php:eval "var_export(array_map(static fn (\$count) => (new \Drupal\Core\StringTranslation\PluralTranslatableMarkup(\$count, ''1 item'', ''@count items'', options: [''langcode'' => ''en'']))->render(), range(0, 5)));"'
289289
silent: true
290290

291291
translations:export:
292292
cmds:
293-
- task compose -- exec phpfpm bash -c '(cd web && ../vendor/bin/drush locale:export da --types=customized > ../translations/custom-translations.da.po)'
293+
# @todo Which types should we use here?
294+
- task drush -- locale:export da --types=customized > translations/custom-translations.da.po
294295
# Fix plurals spec in PO file
295296
# https://drupalsun.com/eelke/2020/08/17/tale-mistranslated-plurals
296297
# https://www.drupal.org/project/drupal/issues/3496223

0 commit comments

Comments
 (0)