protected void SetAspNetCultureCookie(SupportedLanguage language) { string culture = language.GetAttributeOfType <UiInfoAttribute>()?.Culture; culture = string.IsNullOrWhiteSpace(culture) ? "en-US" : culture; SetAspNetCultureCookie(new RequestCulture(culture)); }