0.0.6 • Published 8 years ago

dojo-elm-i18n v0.0.6

Weekly downloads
18
License
-
Repository
-
Last release
8 years ago

Generates "typed" Elm code for a dojo message file.

For every dojo message, it generates an Elm function with the appropriate number of arguments.

Install

npm install -g dojo-elm-i18n

Usage

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 ]
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago