Add a path or pattern to localize javascript; en-us, en-gb, etc...
Good or bad, there are times that I have JavaScript that does something to the effect: alert("Invalid Form Fields"). Bad example I know..but I have text scattered throughout my JavaScript files.
Where should these be abstracted to? Is there a reall cool pattern or method I don't know about? Resource files that gets rendered as some JavaScript object that contains all strings?
1
vote
1 comment
-
Have you seen this? http://madskristensen.net/post/Localize-text-in-JavaScript-files-in-ASPNET.aspx