diff options
Diffstat (limited to 'src/client/elm/Model/Translations.elm')
-rw-r--r-- | src/client/elm/Model/Translations.elm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/elm/Model/Translations.elm b/src/client/elm/Model/Translations.elm index 9499dde..57409b0 100644 --- a/src/client/elm/Model/Translations.elm +++ b/src/client/elm/Model/Translations.elm @@ -49,11 +49,11 @@ partDecoderWithTag tag = ----- -getMessage : String -> Translations -> String +getMessage : Translations -> String -> String getMessage = getParamMessage [] -getParamMessage : List String -> String -> Translations -> String -getParamMessage values key translations = +getParamMessage : List String -> Translations -> String -> String +getParamMessage values translations key = getTranslation key translations |> Maybe.map (\parts -> String.concat (List.map (replacePart values) parts)) |> withDefault key |