aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/View
diff options
context:
space:
mode:
authorJoris2016-04-06 14:44:18 +0200
committerJoris2016-04-06 14:44:18 +0200
commitf101c20c9da59c8c644d3cb6fa0b1d08f63e40e4 (patch)
tree3d946095e1ed5cf78b660f93da0d0fc99fb355d8 /src/client/elm/LoggedIn/View
parentac8a7c6210e2f430a3015e8004ff0726ef24d63b (diff)
Use translated month in stat page
Diffstat (limited to 'src/client/elm/LoggedIn/View')
-rw-r--r--src/client/elm/LoggedIn/View/Date.elm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/elm/LoggedIn/View/Date.elm b/src/client/elm/LoggedIn/View/Date.elm
index f9528d4..c9d44ab 100644
--- a/src/client/elm/LoggedIn/View/Date.elm
+++ b/src/client/elm/LoggedIn/View/Date.elm
@@ -1,6 +1,7 @@
module LoggedIn.View.Date
( renderShortDate
, renderLongDate
+ , renderMonth
) where
import Date exposing (..)
@@ -27,6 +28,9 @@ renderLongDate date translations =
]
in getParamMessage params "LongDate" translations
+renderMonth : Translations -> Month -> String
+renderMonth translations month = getMessage (getMonthKey month) translations
+
getMonthKey : Month -> String
getMonthKey month =
case month of