Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.