Click here to Skip to main content
15,666,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have 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.


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.

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

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.

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