You could use the 'Global Resources' functionality.
Using this, you can create a set of 'translation' files (known as Resource files) which contain all the various translations you would need for your web application.
The following article gives you an example of doing this: http://www.developmentalmadness.com/archive/2009/05/20/aspnet-mvc-globalizationlocalization.aspx
That article uses the older Web Form View Engine, but it would work within the Razor View Engine too (@ symbol instead of the <%= %>).
Let's say you added a Resource file called 'MyTranslations', and then added your translations to this file, your html would now look something like the following:
<script type="text/javascript">
messages = {
AccessDenied: "@Html.Raw(Resources.MyTranslations.AccessIsDenied)",
FieldRequired: "@Html.Raw(Resources.MyTranslations.FieldRequired)"
};
</script>