Skip to content
Newer
Older
100644 35 lines (22 sloc) 736 Bytes
a8745e2 @freizl allow wrap other elements
freizl authored May 19, 2012
1 [![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 May 18, 2012
2
08fe8de @freizl a few decriptions
freizl authored May 14, 2012
3 ## snaplet-i18n
4
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored Oct 5, 2012
5 1. create config below into `data/message_en.cfg`
08fe8de @freizl a few decriptions
freizl authored May 13, 2012
6
7 ~~~
8 hello = "Hello"
9 shanghai = "ShangHai"
10 ~~~
11
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored Oct 5, 2012
12 2. use tag in heist template
08fe8de @freizl a few decriptions
freizl authored May 13, 2012
13
14 ~~~
15 <i18n name="shanghai"></i18n>
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored Oct 5, 2012
16 <i18nSpan name="shanghai"></i18n>
17 <i18n name="shanghai">
18 <a><i18nValue /></a>
19 </i18n>
08fe8de @freizl a few decriptions
freizl authored May 13, 2012
20 ~~~
21
6ffcafb @freizl update example as upgrade to snap-0.9
freizl authored Oct 5, 2012
22 **see example at example dir**
08fe8de @freizl a few decriptions
freizl authored May 13, 2012
23
24 ## Snaplet
1b7b56e @freizl init 0.0.1 snaplet-i18n
freizl authored May 14, 2012
25
26 - [what is snaplet]
27
28 [what is snaplet]: http://snapframework.com/docs/tutorials/snaplets-tutorial
3e85d1c @freizl figure the root cause why build failure at hackage
freizl authored Jul 2, 2012
29
30 ## TODO
31
32 - maybe multiple locale support at run time.
94ef4fc @freizl Update README.md
freizl authored Oct 21, 2012
33 - use getDataDir to retrieve locale msg. [snaplet tutorial](http://snapframework.com/docs/tutorials/snaplets-tutorial)
34
Something went wrong with that request. Please try again.