Prepare translating dates

This commit is contained in:
Eike Kettner
2021-04-12 10:53:34 +02:00
parent 7cb4f741e0
commit 5737eba82d
26 changed files with 593 additions and 154 deletions

View File

@ -1,6 +1,10 @@
module Messages.Comp.ItemCard exposing (Texts, gb)
import Data.Direction exposing (Direction)
import Messages.Basics
import Messages.Data.Direction
import Messages.DateFormat
import Messages.UiLanguage
type alias Texts =
@ -10,6 +14,9 @@ type alias Texts =
, openAttachmentFile : String
, gotoDetail : String
, cycleAttachments : String
, formatDateLong : Int -> String
, formatDateShort : Int -> String
, directionLabel : Direction -> String
}
@ -21,4 +28,7 @@ gb =
, 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
, directionLabel = Messages.Data.Direction.gb
}