The I18n
module is responsible for providing a config for translating parts of the
DatePicker
or DateRangePicker
components. When initializing a DatePicker
you can provide an I18n
config
which will in turn be used to translate anything that has been configured.
If Nothing
is provided as the I18n
config, the language will be defaulted to English
with the
default text that can be seen in the example screenshots.
{ monthToString : TextMode -> Time.Month -> String
, weekdayToString : TextMode -> Time.Weekday -> String
, todayButtonText : String
}
The I18n
model.
The Month / Weekday Text Mode