diff options
Diffstat (limited to 'src/client/Model')
-rw-r--r-- | src/client/Model/Translations.elm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/Model/Translations.elm b/src/client/Model/Translations.elm index 2a8a3a7..a6de961 100644 --- a/src/client/Model/Translations.elm +++ b/src/client/Model/Translations.elm @@ -3,7 +3,7 @@ module Model.Translations , Translations , Translation , getMessage - , getVarMessage + , getParamMessage ) where import Maybe exposing (withDefault) @@ -51,10 +51,10 @@ partDecoderWithTag tag = ----- getMessage : String -> Translations -> String -getMessage = getVarMessage [] +getMessage = getParamMessage [] -getVarMessage : List String -> String -> Translations -> String -getVarMessage values key translations = +getParamMessage : List String -> String -> Translations -> String +getParamMessage values key translations = getTranslation key translations |> Maybe.map (\parts -> String.concat (List.map (replacePart values) parts)) |> withDefault key |