Class UpdateCurrentLanguage
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of IUpdateCurrentLanguage
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Globalization.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
[ServiceConfiguration(typeof(IUpdateCurrentLanguage), Lifecycle = ServiceInstanceScope.Singleton)]
public class UpdateCurrentLanguage : IUpdateCurrentLanguage
Remarks
Will set ContentLanguage, SystemLanguage and UserInterfaceLanguage
Constructors
UpdateCurrentLanguage(IContentLanguageSettingsHandler)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a new instance of UpdateCurrentLanguage.
Declaration
public UpdateCurrentLanguage(IContentLanguageSettingsHandler contentLanguageSettingsHandler)
Parameters
Type | Name | Description |
---|---|---|
IContentLanguageSettingsHandler | contentLanguageSettingsHandler |
Methods
UpdateLanguage(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Updates the current language settings.
Declaration
public void UpdateLanguage(string languageId)
Parameters
Type | Name | Description |
---|---|---|
System.String | languageId | The language id. |
UpdateReplacementLanguage(IContent, String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Updates current language settings if a replacement language is used.
Declaration
public void UpdateReplacementLanguage(IContent currentContent, string requestedLanguage)
Parameters
Type | Name | Description |
---|---|---|
IContent | currentContent | The content that we route to. |
System.String | requestedLanguage | The requested language selection. |