Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IRequestCultureService

    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IRequestCultureService

    Methods

    View Source

    GetRequestedCulture()

    Gets the requested culture from the "Accept-Language" header, if present.

    Declaration
    string GetRequestedCulture()
    Returns
    Type Description
    System.String
    View Source

    SetRequestCulture(String)

    Updates the current request culture if applicable.

    Declaration
    void SetRequestCulture(string culture)
    Parameters
    Type Name Description
    System.String culture

    The culture to use for the current request.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetRequestedCulture()
      • SetRequestCulture(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX