Skip to content

[Translator] Add configuration to filter dumped keys by pattern #3241

@Kocal

Description

@Kocal

We already have the option to choose the domain from which we retrieve keys, but adding a filter on key names (via pattern) would allow for more refined filtering.
Since #3208, there is no longer any tree shaking. Adding this feature could help reduce the size of the generated .js files.

ux_translator:
   keys_patterns:
      - 'app.**'
      - 'foo.*.bar'
      - 'foo.**.bar' 
      - # ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions