CultureHelper.GetCultureFromHeader Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetCultureFromHeader(String)

Returns a CultureInfo object representing the prefered language from the Accept-Language header.

public static CultureInfo GetCultureFromHeader(string acceptLanguage)

Parameters

acceptLanguage
System.String

Returns

System.Globalization.CultureInfo

A object, or null if no matching culture could be created.