You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
I was looking for a solution for the same problem. I ended up importing translations like that
// This will load the translation for the 'admin' domain (this is what path('bazinga_jstranslation_js', { 'domain': 'admin' }) would return in twig, adjust with your own path)import'/path/to/translations/admin'// Then load the Translator object importTranslatorfrom'bazinga-translator'console.log(Translator.trans('whatever'))
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:
FriendsOfSymfony/FOSJsRoutingBundle#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!
The text was updated successfully, but these errors were encountered: