In your JS code write you can write the following literal declaration into a JS variable.
var data = “<asp:Literal runat=”server” Text=”<%$Resources:myresourcefile,resourcetitle%>” />”;
Then you can use the value in the data variable to lets say hide something in your page based on a translation. In the following example I hid a certain breadcrumb information based on different languages.
$(“#breadcrumb ul li a:contains(” + code + “)”).hide();