Implementation of LocaleResolver that simply uses the primary locale specified in the "accept-language" header of the HTTP request (that is, the locale sent by the client browser, normally that of the client's OS).
- Implemented types
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
ForceRequest request) → Intl
Resolve the current locale via the given request.
Should return a default locale as fallback in any case.
@param request the request to resolve the locale for
@return the current locale (never
String accept_header) → Intl
ForceRequest request, covariant Intl locale) → void
Set the current locale to the given one.
@param request the request to be used for locale modification
@param locale the new locale, or
nullto clear the locale @throws UnsupportedOperationException if the LocaleResolver implementation does not support dynamic changing of the themeoverride
) → String
A string representation of this object. [...]