This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.2
We were not able to find the expected elm-package.json file at this tag.
Tag 1.1.0
Committed At 2021-04-21 15:57:27 UTC




    Helpers for working with Engage's DNN localization.

    To get started, decode an array of objects into a Localization value (which is just an alias for Dict String String).

    import Dict
    import Engage.Localization as Localization exposing (Localization)
    import Json.Decode as Decode
    localizationJson : String
    localizationJson = """
            { "key": "FirstName.Text", "value": "First Name:" },
            { "key": "LastName.Text", "value": "Last Name:" }
    myLocalization : Localization
    myLocalization =
        case localizationJson |> Decode.decodeString Localization.decoder of
            Ok localization ->
            Err _ ->
    type alias MyModel =
        { localization: Localization
    myModel : MyModel
    myModel = MyModel myLocalization
    Localization.localizeString "FirstName.Text" myModel
    --> "First Name:"