Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Haskell
Tree: 6ffcafb5f9

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
src/Snap/Snaplet
.gitignore
.travis.yml
LICENSE
Makefile
README.md
Setup.hs
snaplet-i18n.cabal

README.md

Build Status

snaplet-i18n

  1. create config below into data/message_en.cfg
hello = "Hello"
shanghai = "ShangHai"
  1. use tag in heist template
<i18n name="shanghai"></i18n>
<i18nSpan name="shanghai"></i18n>
<i18n name="shanghai">
  <a><i18nValue /></a>
</i18n>

see example at example dir

Snaplet

TODO

  • maybe multiple locale support at run time.
  • build failed at Hakcage
    • because heist does not specify version of transformers, which will conflick with transformer of mtl
    • Upgrade heist would be fine.
Something went wrong with that request. Please try again.