Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

snaplet-i18n

branch: branch/0.0.4

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 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.
  • use getDataDir to retrieve locale msg. snaplet tutorial
Something went wrong with that request. Please try again.