ILanguageDetectionController is defined in the Telligent.Evolution.Extensibility.Version1 namespace of Telligent.Evolution.Platform.dll
Definition
interface ILanguageDetectionController
{
HttpContextBase HttpContext { get; }
IReadOnlyList<string> SupportedLanguages { get; }
int? UserId { get; }
bool IsLanguageSupported(string languageKey);
}
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| HttpContext | HttpContextBase | The current HttpContext for the request. | ||
| SupportedLanguages | IReadOnlyList<string> | The languages currently installed in this community. | ||
| UserId | int? | The currently authentication user. If this value is null no user is currently logged in. |
Methods
bool IsLanguageSupported(string languageKey);
Is a specific language key supported by the community.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| languageKey | string | Language Key | Required |
Return Type
bool