public static interface LocalizationContext.Builder
LocalizationContext creationLocalizationContext.Builder withInitialLocale(Locale locale)
locale - LocaleLocalizationContext.Builder withInitialLocalization(Localization localization)
localization - LocalizationLocalizationContext.Builder withInitialSystemLocale()
LocalizationContext.Builder withDefaultBooleanLocalization(boolean value, Localizable message)
Localizable message to use to localize a boolean valuevalue - Boolean valuemessage - The localizable message to use to localize given boolean valueLocalizationContext.Builder withDefaultDateTemporalFormat(TemporalFormat format)
TemporalFormat style to use to format dates.
This is overriden by any Localization.getDefaultDateTemporalFormat() value.
format - Defalt date format styleLocalizationContext.Builder withDefaultTimeTemporalFormat(TemporalFormat format)
TemporalFormat style to use to format times.
This is overriden by any Localization.getDefaultTimeTemporalFormat() value.
format - Defalt time format styleLocalizationContext.Builder disableDateTimeFormatsCache()
LocalizationContext.Builder messageArgumentsPlaceholder(String placeholder)
MessageProvider.DEFAULT_MESSAGE_ARGUMENT_PLACEHOLDER.placeholder - Placeholder for message argumentsLocalizationContext.Builder messageProvider(MessageProvider messageProvider)
messageProvider - MessageProvider to addLocalizationContext build()
Copyright © 2017 The Holon Platform. All rights reserved.