The snaplet-i18n package

[Tags:bsd3, library, program]

A light weight i18n snaplet.


[Skip to Readme]

Properties

Versions 0.0.1, 0.0.2, 0.0.2.1, 0.0.3, 0.0.3.1, 0.0.4, 0.0.5
Dependencies base (==4.*), configurator (==0.2.*), filepath (>=1.2 && <1.4), heist (==0.10.*), lens (>=3.7.0.1 && <3.8), snap (==0.10.*), snap-loader-static (>=0.9 && <0.11), text (==0.11.*), xmlhtml (>=0.2) [details]
License BSD3
Copyright Haisheng Wu
Author Haisheng,Wu
Maintainer freizl@gmail.com
Stability Experience
Category Web
Home page https://github.com/HaskellCNOrg/snaplet-i18n
Source repository head: git clone git://github.com/HaskellCNOrg/snaplet-i18n.git
Uploaded Thu Jan 3 08:54:42 UTC 2013 by HaishengWu
Distributions NixOS:0.0.5
Downloads 1327 total (30 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for snaplet-i18n

Readme for snaplet-i18n-0.0.4

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