Generates "typed" Elm code for a dojo message file.
For every dojo message, it generates an Elm function with the appropriate number of arguments.
npm install -g dojo-elm-i18n
dojo-elm-i18n -h
Example :
dojo-elm-i18n -m "AppMessages" src/js/foo/bar/nls/messages.js > src/elm/AppMessages.elm
And in Elm code :
import AppMessages exposing (..)
-- under "root", no args
div
[]
[ text <| messages.myKey ]
-- nested msg with 2 args
div
[]
[ text <| messages.myObj.myKey arg1 arg2 ]