-
Notifications
You must be signed in to change notification settings - Fork 159
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
jms_i18n_routing extractor always extracts all routes #198
Comments
Hi @jschaedl translation:extract command creates translations both for routes and translation in twig, that don't have translation in file. |
Hi @Leprechaunz sorry, but that's not true. I'm using the custom extractor |
Hi @jschaedl Even if you use You can test it by removing 'messages' translation files and running this command. It will create new 'messages' files from your twig template. |
@Leprechaunz :-) you are right there is also a |
@jschaedl Yes, you are right. It creates route translation for all bundles. Sorry, I don't have any better idea for your issue. |
I also have the problem that routes translation per bundle are filled with all routes, instead of the bundle only routes. Would be nice if this works te same as for messages translations. Respect the |
Hi,
I tried to extract routes for one bundle only, but the extractor always extracted all the routes from the application. Here is the command I used:
php app/console translation:extract de --enable-extractor=jms_i18n_routing --bundle=TestShopBundle --output-dir=./app/Resources/translations --keep
and here is the output:
Added Messages: 742 but I have much less routes in this bundle...
Am I doing something wrong?
Thanks a lot!
The text was updated successfully, but these errors were encountered: