Hi , How to add translations in .js file
I am having a line like
$(display_charsleft_id).innerHTML = var1 + " characters left!";
I amtrying to add translations by (display_charsleft_id).innerHTML = var1 + <%=t :str_chars_left%>;
but this shows only the translation value and not appending the value of var1 str_chars_left: "characters left!"