Plugin for dynamically altering the user language for a single request.
ILanguageDetector
is defined in the Telligent.Evolution.Extensibility.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ILanguageDetector : IPlugin, ISingletonPlugin { string DetectLanguage(ILanguageDetectionController controller); }
Methods
string DetectLanguage(ILanguageDetectionController controller);
Sets the lanugage to the returned lanugage key(e.g 'en-us') for the duration of the request. The returned language must be installed in your community.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
controller | ILanguageDetectionController | Controller | Required |
Return Type
string