Problem/Motivation
The drush locale:export fr > fr.po
don't export any .po file, the command stop silently.
Tested on legacy code and on a fresh DDEV install.
Steps to reproduce
Launch drush locale:export fr > fr.po
When launched with the -vvv option, the command don't stop and block after "[info] Try to validate bootstrap phase 0 [0.6 sec, 41.61 MB]"
Logs
drush locale:export fr > ../html/fr.po -vvv
[preflight] Config paths: /var/www/html/vendor/drush/drush/drush.yml,/var/www/html/drush/drush.yml
[preflight] Alias paths: /var/www/html/web/drush/sites,/var/www/html/drush/sites
[preflight] Commandfile search paths: /var/www/html/vendor/drush/drush/src,/var/www/html/drush
[debug] Bootstrap further to find locale:export [0.41 sec, 10.33 MB]
[debug] Trying to bootstrap as far as we can [0.41 sec, 10.33 MB]
[info] Drush bootstrap phase: bootstrapDrupalRoot() [0.41 sec, 10.33 MB]
[info] Change working directory to /var/www/html/web [0.41 sec, 10.33 MB]
[info] Initialized Drupal 11.2.3 root directory at /var/www/html/web [0.41 sec, 10.38 MB]
[info] Drush bootstrap phase: bootstrapDrupalSite() [0.41 sec, 10.86 MB]
[debug] Could not find a Drush config file at sites/default/drush.yml. [0.41 sec, 11.1 MB]
[info] Initialized Drupal site default at sites/default [0.41 sec, 11.1 MB]
[info] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.41 sec, 11.1 MB]
[info] Drush bootstrap phase: bootstrapDrupalDatabase() [0.42 sec, 11.95 MB]
[info] Successfully connected to the Drupal database. [0.42 sec, 11.95 MB]
[info] Drush bootstrap phase: bootstrapDrupalFull() [0.42 sec, 11.95 MB]
[debug] Start bootstrap of the Drupal Kernel. [0.42 sec, 11.95 MB]
[debug] Finished bootstrap of the Drupal Kernel. [0.47 sec, 25.11 MB]
[debug] Loading drupal module drush commands & etc. [0.47 sec, 25.16 MB]
[debug] Found drush.services.yml for key Drush commands [0.47 sec, 25.4 MB]
[debug] Found drush.services.yml for menu_item_extras Drush commands [0.47 sec, 25.4 MB]
[debug] Found drush.services.yml for purge Drush commands [0.47 sec, 25.4 MB]
[debug] Found drush.services.yml for token Drush commands [0.47 sec, 25.4 MB]
[debug] Found drush.services.yml for ultimate_cron Drush commands [0.47 sec, 25.4 MB]
[debug] Found drush.services.yml for webform Drush commands [0.47 sec, 25.4 MB]
[info] Drupal\pathauto\Commands\PathautoCommands::generateAliases(): Implicitly marking parameter $types as nullable is deprecated, the explicit nullable type must be used instead PathautoCommands.php:89 [0.55 sec, 39.47 MB]
[info] Drupal\pathauto\Commands\PathautoCommands::deleteAliases(): Implicitly marking parameter $types as nullable is deprecated, the explicit nullable type must be used instead PathautoCommands.php:135 [0.55 sec, 39.48 MB]
[info] Drupal\pathauto\AliasStorageHelper::__construct(): Implicitly marking parameter $entity_type_manager as nullable is deprecated, the explicit nullable type must be used instead AliasStorageHelper.php:79 [0.55 sec, 39.52 MB]
[debug] Add a command: twig-tweak:validate [0.56 sec, 39.49 MB]
[debug] Add a command: twig-tweak:debug [0.56 sec, 39.49 MB]
[debug] Add a commandfile class: Drupal\config_split\Commands\ConfigSplitCommands [0.56 sec, 39.49 MB]
[debug] Add a commandfile class: Drupal\entity_reference_revisions\Commands\EntityReferenceRevisionsCommands [0.56 sec, 39.51 MB]
[debug] Add a commandfile class: Drupal\hacked\Commands\HackedCommands [0.56 sec, 39.51 MB]
[debug] Add a commandfile class: Drupal\key\Commands\KeyCommands [0.56 sec, 39.53 MB]
[debug] Add a commandfile class: Drupal\menu_item_extras\Commands\MenuItemExtrasCommands [0.56 sec, 39.55 MB]
[debug] Add a commandfile class: Drupal\open_version\Command\OpenVersionCommand [0.56 sec, 39.55 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\DebugCommands [0.56 sec, 39.56 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\DiagnosticsCommand [0.56 sec, 39.57 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\InvalidateCommand [0.56 sec, 39.57 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\ProcessorCommands [0.56 sec, 39.58 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\PurgerCommands [0.56 sec, 39.6 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\QueueCommands [0.56 sec, 39.62 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\QueuerCommands [0.57 sec, 39.65 MB]
[debug] Add a commandfile class: Drupal\purge\Drush\Commands\TypesCommand [0.57 sec, 39.67 MB]
[debug] Add a commandfile class: Drupal\restrict_ip\Drush\Commands\RestrictIpCommands [0.57 sec, 39.67 MB]
[debug] Add a commandfile class: Drupal\scheduler\Commands\SchedulerCommands [0.57 sec, 39.68 MB]
[debug] Add a commandfile class: Drupal\security_review\Commands\SecurityReviewCommands [0.57 sec, 39.68 MB]
[debug] Add a commandfile class: Drupal\token\Drush\Commands\TokenCommands [0.57 sec, 39.76 MB]
[debug] Add a commandfile class: Drupal\ultimate_cron\Commands\UltimateCronCommands [0.57 sec, 39.76 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformSubmissionCommands [0.57 sec, 39.79 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformLibrariesCommands [0.57 sec, 39.82 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformUtilityCommands [0.57 sec, 39.83 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformDocumentationCommands [0.57 sec, 39.84 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformDevelCommands [0.57 sec, 39.84 MB]
[debug] Add a commandfile class: Drupal\webform\Commands\WebformSanitizeSubmissionsCommands [0.57 sec, 39.85 MB]
[debug] Add a commandfile class: Drupal\pathauto\Commands\PathautoCommands [0.57 sec, 39.85 MB]
[debug] Could not instantiate Drupal\restrict_ip\Drush\Commands\RestrictIpCommands: Too few arguments to function Drupal\restrict_ip\Drush\Commands\RestrictIpCommands::__construct(), 0 passed in /var/www/html/vendor/drush/drush/src/Runtime/ServiceManager.php on line 360 and exactly 1 expected [0.58 sec, 40.77 MB]
[debug] Done with bootstrap max in Application::bootstrapAndFind(): trying to find locale:export again. [0.6 sec, 41.53 MB]
[info] Starting bootstrap to none [0.6 sec, 41.61 MB]
[info] Drush bootstrap phase 0 [0.6 sec, 41.61 MB]
[info] Try to validate bootstrap phase 0 [0.6 sec, 41.61 MB]
Proposed resolution
The import/export from the admin page work fine.