C# Class Cats.Web.Hub.Helpers.CultureHelper

Show file Open project: edgecomputing/cats

Public Methods

Method Description
GetCurrentCulture ( ) : string
GetCurrentNeutralCulture ( ) : string
GetDefaultCulture ( ) : string

Returns default culture name which is the first name decalared (e.g. en-US)

GetImplementedCulture ( string name ) : string

Returns a valid culture name based on "name" parameter. If "name" is not valid, it returns the default culture "en-US"

GetNeutralCulture ( string name ) : string

Method Details

GetCurrentCulture() public static method

public static GetCurrentCulture ( ) : string
return string

GetCurrentNeutralCulture() public static method

public static GetCurrentNeutralCulture ( ) : string
return string

GetDefaultCulture() public static method

Returns default culture name which is the first name decalared (e.g. en-US)
public static GetDefaultCulture ( ) : string
return string

GetImplementedCulture() public static method

Returns a valid culture name based on "name" parameter. If "name" is not valid, it returns the default culture "en-US"
public static GetImplementedCulture ( string name ) : string
name string Culture's name (e.g. en-US)
return string

GetNeutralCulture() public static method

public static GetNeutralCulture ( string name ) : string
name string
return string