org.keycloak.locale

## Class DefaultLocaleSelectorProvider

- java.lang.Object
- - org.keycloak.locale.DefaultLocaleSelectorProvider

- All Implemented Interfaces:
    LocaleSelectorProvider, Provider

      public class DefaultLocaleSelectorProvider
      extends Object
      implements LocaleSelectorProvider

- - ### Field Summary

    - ### Fields inherited from interface org.keycloak.locale.LocaleSelectorProvider

      `CLIENT_REQUEST_LOCALE, KC_LOCALE_PARAM, LOCALE_COOKIE, USER_REQUEST_LOCALE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultLocaleSelectorProvider(KeycloakSession session)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `Locale` | `resolveLocale(RealmModel realm, UserModel user)` Resolve the locale which should be used for the request

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultLocaleSelectorProvider

          public DefaultLocaleSelectorProvider(KeycloakSession session)

  - ### Method Detail

    - #### resolveLocale

          public Locale resolveLocale(RealmModel realm,
                                      UserModel user)

      Description copied from interface: `LocaleSelectorProvider`
      Resolve the locale which should be used for the request
      Specified by:
        `resolveLocale` in interface `LocaleSelectorProvider`
      Returns:

    - #### close

          public void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2020 JBoss by Red Hat. All rights reserved.