web-publisher icon indicating copy to clipboard operation
web-publisher copied to clipboard

Command "translation:extract" is not defined.

Open kottkrig opened this issue 4 years ago • 1 comments

Expected Behavior

It should be possible to extract translations from twig files with the following command according to the docs.

bin/console translation:extract en --dir=./src/SWP/Bundle/FixturesBundle/Resources/themes/DefaultTheme/ --output-dir=./src/SWP/Bundle/FixturesBundle/Resources/themes/DefaultTheme/translations

Current Behavior

But I get the following output when running translation:extract:

Command "translation:extract" is not defined.

Do you want to run "translation:update" instead?  (yes/no) [no]:
> 

And the output from php bin/console list don't mention the translation:extract command. It only lists the translation:update command.

translation
  translation:update                         Updates the translation file

kottkrig avatar Oct 20 '20 08:10 kottkrig

Could it be connected to this issue? https://github.com/schmittjoh/JMSTranslationBundle/issues/505

kottkrig avatar Oct 20 '20 09:10 kottkrig