Modifier and Type | Method and Description |
---|---|
static Locale |
getCurrentLocale()
Returns the requested locale of the current HTTP request, or default locale of the server.
|
static List<Locale> |
getCurrentLocales()
Returns a list of locales indicating, in decreasing order starting with the preferred locale, the locales that
are acceptable to the client based on the Accept-Language header.
|
static LocaleFacade |
getLocaleFacade()
The
LocaleFacade instance. |
static void |
setLocaleFacade(LocaleFacade localeFacade)
Replaces the default
LocaleFacade instance. |
public static void setLocaleFacade(@Nullable LocaleFacade localeFacade)
LocaleFacade
instance.localeFacade
- An instance of LocaleFacade
. Use null
to reset the facade.@Nonnull public static Locale getCurrentLocale()
@Nonnull public static List<Locale> getCurrentLocales()
@Nonnull public static LocaleFacade getLocaleFacade()
LocaleFacade
instance.Copyright © 2019 SAP SE. All rights reserved.