i18n string in javascript template

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

i18n string in javascript template

hsheng
Environment: Spring 4.3.7 and Thymeleaf 3.0.2, template mode: javascript The javascript snippet: [ {view:"text", disabled:true, label:"[[#{portmove.site.id}]]", value: SP.PortMove.source.site.id}, {view:"text", disabled:true, label:"[[#{portmove.site.name}]]", value: SP.PortMove.source.site.name}, {view:"text", disabled:true, label:"[[#{portmove.site.location}]]", value: SP.PortMove.source.site.location} ]; After processed by Thymeleaf engine: [ {view:"text", disabled:true, label:""Site ID"", value: SP.PortMove.source.site.id}, {view:"text", disabled:true, label:""Site Name"", value: SP.PortMove.source.site.name}, {view:"text", disabled:true, label:""Location"", value: SP.PortMove.source.site.location} ]; Just wondering why Thymelead adds the extra quote, any way that I can control adding or not adding the extra quotes? Thank you very much.