I'm saving some translation data in the data attribute of a DOM element.
<input type='button' id=admin-button data-add= <%=t :Add_Category%> data-save= <%=t :Save%> value= <%=t :Add_Category%>
unfortunately when the translation file value has a space such as Add_Category:"Add Category"
I get
data-add="Add" category=""
instead of
data-add="add category"
it works if i do it without the translation in between.