-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Translator] Filter dumped domains #1225
Comments
Btw, this can help with the fact that AssetMapper does not have tree-shaking features. |
Great idea!
We could create a separate "module" per domain, and use assetmapper to generate the file used to preload/register them ? Pseudo-code
|
Thank you for this issue. |
Friendly reminder that this issue exists. If I don't hear anything I'll close this. |
Let's keep it open for now :) |
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 themessages
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 themessages
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).
The text was updated successfully, but these errors were encountered: