BazingaJsTranslationBundle icon indicating copy to clipboard operation
BazingaJsTranslationBundle copied to clipboard

Document how to use with AssetMapper

Open tacman opened this issue 2 months ago • 1 comments

I'd like to use this bundle with AssetMapper, and install the translations during the compile that than from a script tag.

Like the jsRoutingBundle, this is a bit a tricky, since you can't simply load JSON:

https://github.com/FriendsOfSymfony/FOSJsRoutingBundle/issues/466

It certainly looks possible, to dump the message as js rather than json and then load it, but I was wondering if anyone had already done this and could point to how to do it.

Thanks!

tacman avatar May 02 '24 14:05 tacman