8000 TranslatableMessage not extracted · Issue #39126 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
TranslatableMessage not extracted #39126
Closed
@rmdefi

Description

@rmdefi

Symfony version(s) affected: 5.2.0-RC1

Description
The class TranslatableMessage (and the shorthand t() function), introduced in symfony 5.2, allows to provide translatable messages without needing the translator service.
The PhpExtractor from the translation component does extract them.
However, the translation:update (and debug:translation) command only extract from services which have the translator service injected.

Possible Solution
The only solution I can think of would be to have the extraction parse all the PHP sources, but maybe as an option not enabled by default?

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

      0