spring-framework / org.springframework.web.server.i18n / FixedLocaleContextResolver / <init>

<init>

FixedLocaleContextResolver()

Create a default FixedLocaleResolver, exposing a configured default locale (or the JVM's default locale as fallback).

FixedLocaleContextResolver(locale: Locale)

Create a FixedLocaleResolver that exposes the given locale.

Parameters

locale - the locale to expose

FixedLocaleContextResolver(locale: Locale, @Nullable timeZone: TimeZone)

Create a FixedLocaleResolver that exposes the given locale and time zone.

Parameters

locale - the locale to expose

timeZone - the time zone to expose