Class NoopRequestCultureService
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public sealed class NoopRequestCultureService : IRequestCultureService
Methods
View SourceGetRequestedCulture()
Gets the requested culture from the "Accept-Language" header, if present.
Declaration
public string GetRequestedCulture()
Returns
Type | Description |
---|---|
System.String |
SetRequestCulture(String)
Updates the current request culture if applicable.
Declaration
public void SetRequestCulture(string culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | culture | The culture to use for the current request. |