Created
December 16, 2011 14:55
-
-
Save goenning/1486348 to your computer and use it in GitHub Desktop.
globalization with javascript and razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var message = '@(MyStrings.WelcomeMessage)'; | |
</script> | |
<script type="text/javascript" src="util.js"></script> | |
Then, in your util.js you do: | |
alert(message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment