Closed
Description
The translation:update
command is a great way to extract translation messages and keep them up to date. It's possible to write your own extractors and add them to the chain (by tagging them with translation.extractor
).
It would be great if the command did not restrict to the view folder (see https://github.com/symfony/framework-bundle/blob/master/Command/TranslationUpdateCommand.php#L124) so that we can make other extractions possible.
At the moment we have to hack this by creating our own extractor that replaces the '/Resources/views' in the given $resource
variable with the desired target directory/file.
Is there any reason for this restriction? Can it be lifted? If so, perhaps we can help with the implementation?