RequestLocaleResolvershould be used instead.
@Deprecated public interface LocaleResolver
LocaleResolverservice interface may be implemented by a service registered under this name to allow the resolution of the request
This interface is intended to be implemented by providers knowing how to
resolve one or more
Locales applicable to handle the request.
Only a single
LocaleResolver service is currently used.
|Modifier and Type||Method and Description|
Return a non-
java.util.List<java.util.Locale> resolveLocale(SlingHttpServletRequest request)
nullbut possiby empty list of
Localeinstances to consider for localization of the current request. The list returned is assumed to be ordered by preference where the first entry is the prefered
Localeand the last entry is the least prefered
Returning an empty list is equivalent to returning a singleton list whose
single entry is the
SlingHttpServletRequestproviding hints and information for the
Locales to use for internationalization of request processing
Copyright © 2018 The Apache Software Foundation. All rights reserved.