Spring Velocity JavaScript can they work together?

I’m trying to make an internationalized js-message using following code from the .js file:
Code:
confirm('#springMessage("saveIfChanged@generic.translations")')
where springMessage is a velocity macro:
Code:
#macro( springMessage $code )
$springMacroRequestContext.getMessage($code)#end
The properties of the view resolver we use:
Code:
		<property name="cache"><value>$&#123;web-settings.viewResolver.cache&#125;</value></property>
        <property name="prefix"><value>/WEB-INF/js/</value></property>
        <property name="suffix"><value>.js</value></property>
		<property name="exposeSpringMacroHelpers"><value>true</value></property>
		<property name="acegiSecurityHelper"><ref bean="acegiSecurityHelper"/></property>
		<property name="order"><value>2</value></property>
This is resulting in
Code:
confirm&#40;'$springMacroRequestContext.getMessage&#40;$code&#41;'&#41;&#41;

We use the macro in regular .vm files with no problems.

What are we missing here?