Closed sprain closed 2 years ago
Hi @sprain, there is no convention for this at the moment. I don't use the bundle with the locale functionality, but to my understanding using --target
would make the most sense (then everyone can use the filename they find most convenient). If you want to make a PR to clarify this in the documentation then go ahead 😄
The docs for
fos:js-routing:dump
state:So if I understand correctly you need to run the command multiple times:
What happens is that the second command overwrites the dump of
fos_js_routes.js
created by the first command. In my understanding it should instead create multiple files, likefos_js_routes.en.js
andfos_js_routes.fr.js
.Is my understanding of how it is supposed to work wrong? If not, would you accept a pr which introduces the expected behaviour are mentioned above in a bc-friendly way? If so, would it be accepted in the v2 branch, too?
Or are you supposed to use
--target
? In this case it would need a clearer documentation (which I could also make a pr for).