Skip to content

[Translator] Filter dumped domains #1225

@stof

Description

@stof

In my project where I'm using https://github.com/willdurand/BazingaJsTranslationBundle currently, I'm using the js domain for translation keys used in JS code instead of keeping them in the messages domain. This allows me to reduce the size of the dumped translation a lot by including only this domain in the dumped JS code (I have less than 100 keys in the JS file, while I have more than 2000 keys in the messages domain).
It would be great if the bundle could have a configuration setting to define the list of domains to dump for the JS code instead of dumping them all (the default could still be to dump them all).

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