Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanz/286483 to your computer and use it in GitHub Desktop.
Save ivanz/286483 to your computer and use it in GitHub Desktop.
// Global.asax
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start ()
{
SetupLocalization ();
RegisterRoutes (RouteTable.Routes);
}
private static void SetupLocalization ()
{
LocalizationConfig.EnableLocalization ();
LocalizationConfig.UseTwoLetterISOCultureNameForViews = true;
LocalizationConfig.FallbackCulture = "bg";
LocalizationConfig.SupportedCultures = new string[] { "bg", "en" };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment