mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
Require a time zone when formatting date-times
This commit is contained in:
@ -12,6 +12,7 @@ module Messages.Comp.ItemCard exposing
|
||||
)
|
||||
|
||||
import Data.Direction exposing (Direction)
|
||||
import Data.TimeZone exposing (TimeZone)
|
||||
import Messages.Basics
|
||||
import Messages.Data.Direction
|
||||
import Messages.DateFormat
|
||||
@ -31,29 +32,29 @@ type alias Texts =
|
||||
}
|
||||
|
||||
|
||||
gb : Texts
|
||||
gb =
|
||||
gb : TimeZone -> Texts
|
||||
gb tz =
|
||||
{ basics = Messages.Basics.gb
|
||||
, dueOn = "Due on"
|
||||
, new = "New"
|
||||
, openAttachmentFile = "Open attachment file"
|
||||
, gotoDetail = "Go to detail view"
|
||||
, cycleAttachments = "Cycle attachments"
|
||||
, formatDateLong = Messages.DateFormat.formatDateLong Messages.UiLanguage.English
|
||||
, formatDateShort = Messages.DateFormat.formatDateShort Messages.UiLanguage.English
|
||||
, formatDateLong = Messages.DateFormat.formatDateLong Messages.UiLanguage.English tz
|
||||
, formatDateShort = Messages.DateFormat.formatDateShort Messages.UiLanguage.English tz
|
||||
, directionLabel = Messages.Data.Direction.gb
|
||||
}
|
||||
|
||||
|
||||
de : Texts
|
||||
de =
|
||||
de : TimeZone -> Texts
|
||||
de tz =
|
||||
{ basics = Messages.Basics.de
|
||||
, dueOn = "Fällig am"
|
||||
, new = "Neu"
|
||||
, openAttachmentFile = "Anhang öffnen"
|
||||
, gotoDetail = "Detailansicht"
|
||||
, cycleAttachments = "Anhänge durchschalten"
|
||||
, formatDateLong = Messages.DateFormat.formatDateLong Messages.UiLanguage.German
|
||||
, formatDateShort = Messages.DateFormat.formatDateShort Messages.UiLanguage.German
|
||||
, formatDateLong = Messages.DateFormat.formatDateLong Messages.UiLanguage.German tz
|
||||
, formatDateShort = Messages.DateFormat.formatDateShort Messages.UiLanguage.German tz
|
||||
, directionLabel = Messages.Data.Direction.de
|
||||
}
|
||||
|
Reference in New Issue
Block a user