Constructor and Description |
---|
LocaleFacade() |
Modifier and Type | Method and Description |
---|---|
Locale |
getCurrentLocale()
Returns the requested locale of the current HTTP request, or the server's default locale if called outside the
context of an HTTP request.
|
List<Locale> |
getCurrentLocales()
Returns a list of Locale objects indicating, in decreasing order starting with the preferred locale, the locales
that are acceptable to the client based on the Accept-Language header.
|
@Nonnull public Locale getCurrentLocale()
@Nonnull public List<Locale> getCurrentLocales()
Copyright © 2018 SAP SE. All rights reserved.