Interface IPreferredLanguageRetriever
Retrieves preferred language name for the current request.
public interface IPreferredLanguageRetriever
- Extension Methods
Methods
Get()
Retrieves the preferred language name for the current request from Microsoft.AspNetCore.Routing.RouteValueDictionary.
string Get()
Returns
- string
Remarks
Retrieved preferred language name does not have to be the same as the actual language of the current page (page is not translated in preferred language). Primary language of a current website channel is returned if no language is set in Microsoft.AspNetCore.Routing.RouteValueDictionary.