Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have Asp.net mvc 4 solution. So, i have used to nuget localization package to localize my application. it is working fine on .cshtml file as below example.

C#
@Html.Localize("systemName")


above "systemName" is the key. It may have different values according to language.

And alos, i have a javascript file calles custom.js . But i couldn't localize this js file.

Example:-
JavaScript
if (paymentDate === "") {
              $(obj).find("#datepicker").addClass("has-error").attr("title", "Skriv inn en gyldig dato");//Please enter a valid Date
              $(obj).find("#datepicker").tooltip("show");
              isValid = false;
          } else {
              $(obj).find("#datepicker").removeClass("has-error").attr("title", "Skriv inn en gyldig dato");
              $(obj).find("#datepicker").tooltip("destroy");
          }


so, i tried much times to do this,.but i couldn't. Please help me to solve this.
Thanks All.

What I have tried:

I have tried but not fixed yet.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900