From ce71cb199429463085e8b533000f01aff79df5ea Mon Sep 17 00:00:00 2001 From: Hugo Monteiro Date: Mon, 23 Feb 2026 17:31:27 +0000 Subject: [PATCH] Fix default dump directory from web/js to public/js Since Symfony 4.0+, the web root directory was renamed from web/ to public/. Update the default dump target path to match. --- Command/DumpCommand.php | 2 +- Dumper/TranslationDumper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/DumpCommand.php b/Command/DumpCommand.php index 2fa2041..8ad16e4 100644 --- a/Command/DumpCommand.php +++ b/Command/DumpCommand.php @@ -82,7 +82,7 @@ protected function initialize(InputInterface $input, OutputInterface $output): v { parent::initialize($input, $output); - $this->targetPath = $input->getArgument('target') ?: sprintf('%s/web/js', $this->projectDir); + $this->targetPath = $input->getArgument('target') ?: sprintf('%s/public/js', $this->projectDir); } protected function execute(InputInterface $input, OutputInterface $output): int diff --git a/Dumper/TranslationDumper.php b/Dumper/TranslationDumper.php index 7b5856a..ec30df4 100644 --- a/Dumper/TranslationDumper.php +++ b/Dumper/TranslationDumper.php @@ -125,7 +125,7 @@ public function addLoader($id, $loader) * @param \stdClass|null $merge Merge options. */ public function dump( - $target = 'web/js', + $target = 'public/js', $pattern = self::DEFAULT_TRANSLATION_PATTERN, array $formats = array(), ?\stdClass $merge = null