HttpContextExtensions.SetUserLocale

Sets the culture and UI culture to a specific culture. Allows overriding of currency and optionally disallows setting the UI culture.

You can also limit the locales that are allowed in order to minimize resource access for locales that aren't implemented at all.

public static void SetUserLocale(HttpContext httpContext, string culture, 
			string uiCulture, string currencySymbol, 
			bool setUiCulture, string allowedLocales)

© West Wind Technologies, 2025 • Updated: 2025-03-06
Comment or report problem with topic