Require a time zone when formatting date-times

This commit is contained in:
eikek
2022-03-01 21:58:30 +01:00
parent 6d822a0769
commit 6f7eafcebc
51 changed files with 456 additions and 349 deletions

View File

@ -11,6 +11,7 @@ module Messages.Comp.CustomFieldTable exposing
, gb
)
import Data.TimeZone exposing (TimeZone)
import Messages.Basics
import Messages.DateFormat as DF
import Messages.UiLanguage
@ -25,21 +26,21 @@ type alias Texts =
}
gb : Texts
gb =
gb : TimeZone -> Texts
gb tz =
{ basics = Messages.Basics.gb
, nameLabel = "Name/Label"
, format = "Format"
, usageCount = "#Usage"
, formatDateShort = DF.formatDateShort Messages.UiLanguage.English
, formatDateShort = DF.formatDateShort Messages.UiLanguage.English tz
}
de : Texts
de =
de : TimeZone -> Texts
de tz =
{ basics = Messages.Basics.de
, nameLabel = "Name/Label"
, format = "Format"
, usageCount = "#Nutzung"
, formatDateShort = DF.formatDateShort Messages.UiLanguage.German
, formatDateShort = DF.formatDateShort Messages.UiLanguage.German tz
}