November Happy Hour will be moved to Thursday December 5th.

Interface ICurrentCultureAccessor

Provides access to the current cultures for the current execution.

Namespace: EPiServer.Framework.Localization
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface ICurrentCultureAccessor
Remarks

Works like System.Globalization.CultureInfo.CurrentCulture and System.Globalization.CultureInfo.CurrentUICulture with difference that during a http request is an assigned value accessible throughout the request.

Properties

CurrentCulture

The determined culture.

Declaration
CultureInfo CurrentCulture { get; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

If not explicitly assinged it fallback to System.Globalization.CultureInfo.CurrentCulture

CurrentUICulture

The determined UI culture.

Declaration
CultureInfo CurrentUICulture { get; }
Property Value
Type Description
System.Globalization.CultureInfo
Remarks

If not explicitly assinged it fallback to System.Globalization.CultureInfo.CurrentUICulture

Extension Methods