schmittjoh/JMSTwigJsBundle — Issue #6: Trans filter is not available in JS and doc does not help
Author: jonathaningram
Created: 2012-03-06 14:58:41+00:00
State: open

I am making progress with the FormExtension, however the trans filter does not seem to work out of the box. The generated JS seems to be fine but the "trans" filter never exists in twig.environment.filters_ (obviously)

I assume that I need to write and provide either a compile time or runtime filter myself (or perhaps even a TransExtension.js - I have not delved deep enough yet), but it would be good if the doc mentioned this (if this is indeed the way to go).