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
- accept
Language - string
Value of the Accept-Language header as a comma separated string.
Returns
System.Globalization.CultureInfo
A System.Globalization.CultureInfo
object, or null
if no matching culture could be created.