org.springframework.context.i18n

## 接口 LocaleContext

- 所有已知子接口:
    TimeZoneAwareLocaleContext
  所有已知实现类:
    SimpleLocaleContext, SimpleTimeZoneAwareLocaleContext

      public interface LocaleContext

  Strategy interface for determining the current Locale.

  A LocaleContext instance can be associated with a thread via the LocaleContextHolder class.

  从以下版本开始:
    1.2
  作者:
    Juergen Hoeller
  另请参阅:
    `LocaleContextHolder.getLocale()`, `TimeZoneAwareLocaleContext`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `Locale` | `getLocale()` Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.

- - ### 方法详细资料

    - #### getLocale

          @Nullable
          Locale getLocale()

      Return the current Locale, which can be fixed or determined dynamically, depending on the implementation strategy.
      返回:
        the current Locale, or `null` if no specific Locale associated