Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (24 sloc) 0.788 kb
a7c6c3d @freizl travis integration
freizl authored
1
a8745e2 @freizl allow wrap other elements
freizl authored
2 [![Build Status](https://secure.travis-ci.org/HaskellCNOrg/snaplet-i18n.png?branch=master)](http://travis-ci.org/HaskellCNOrg/snaplet-i18n)
a7c6c3d @freizl travis integration
freizl authored
3
08fe8de @freizl a few decriptions
freizl authored
4 ## snaplet-i18n
5
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored
6 1. create config below into `data/message_en.cfg`
08fe8de @freizl a few decriptions
freizl authored
7
8 ~~~
9 hello = "Hello"
10 shanghai = "ShangHai"
11 ~~~
12
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored
13 2. use tag in heist template
08fe8de @freizl a few decriptions
freizl authored
14
15 ~~~
16 <i18n name="shanghai"></i18n>
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored
17 <i18nSpan name="shanghai"></i18n>
18 <i18n name="shanghai">
19 <a><i18nValue /></a>
20 </i18n>
08fe8de @freizl a few decriptions
freizl authored
21 ~~~
22
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored
23 **see example at example dir**
08fe8de @freizl a few decriptions
freizl authored
24
25 ## Snaplet
1b7b56e @freizl init 0.0.1 snaplet-i18n
freizl authored
26
27 - [what is snaplet]
28
29 [what is snaplet]: http://snapframework.com/docs/tutorials/snaplets-tutorial
3e85d1c @freizl figure the root cause why build failure at hackage
freizl authored
30
31 ## TODO
32
33 - maybe multiple locale support at run time.
34 - build failed at Hakcage
35 - because heist does not specify version of `transformers`, which will conflick with `transformer` of `mtl`
36 - Upgrade heist would be fine.
Something went wrong with that request. Please try again.