Interface ICurrentUiCulture
UI Language service used resolve the preferred ui culture for a user
Namespace: EPiServer.Shell.Profile.Internal
Assembly: EPiServer.Shell.dll
Version: 10.10.4Syntax
public interface ICurrentUiCulture
Methods
Get(String)
Returns the preferred UI Culture for the user
Declaration
CultureInfo Get(string userName)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The userName for the user to get the ui culture for |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo |
Save(String, CultureInfo)
Saves the preferred ui culture for the user
Declaration
void Save(string userName, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | The userName for the user to store the ui culture |
System.Globalization.CultureInfo | culture | The preferred ui culture |