PanagiotisGeorgiadis / elm-datepicker / DatePicker.I18n

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.


type alias I18n =
{ monthToString : TextMode -> Time.Month -> String
, weekdayToString : TextMode -> Time.Weekday -> String
, todayButtonText : String 
}

The I18n model.


type TextMode
    = Condensed
    | Full

The Month / Weekday Text Mode