Skip to content

Instantly share code, notes, and snippets.

@goenning
Created December 16, 2011 14:55
Show Gist options
  • Save goenning/1486348 to your computer and use it in GitHub Desktop.
Save goenning/1486348 to your computer and use it in GitHub Desktop.
globalization with javascript and razor
<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