Package org.keycloak.locale
Interface LocaleSelectorProvider
-
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultLocaleSelectorProvider
public interface LocaleSelectorProvider extends Provider
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_REQUEST_LOCALEstatic StringKC_LOCALE_PARAMstatic StringLOCALE_COOKIEstatic StringUSER_REQUEST_LOCALE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocaleresolveLocale(RealmModel realm, UserModel user)Resolve the locale which should be used for the request
-
-
-
Field Detail
-
LOCALE_COOKIE
static final String LOCALE_COOKIE
- See Also:
- Constant Field Values
-
KC_LOCALE_PARAM
static final String KC_LOCALE_PARAM
- See Also:
- Constant Field Values
-
CLIENT_REQUEST_LOCALE
static final String CLIENT_REQUEST_LOCALE
- See Also:
- Constant Field Values
-
USER_REQUEST_LOCALE
static final String USER_REQUEST_LOCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveLocale
Locale resolveLocale(RealmModel realm, UserModel user)
Resolve the locale which should be used for the request- Parameters:
user-- Returns:
-
-