Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

translation:update command can only extract from the Resources/views directory #17739

Copy link
Copy link
Closed
@DrososTasos

Description

@DrososTasos
Issue body actions

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.