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.*), bytestring (>=0.9 && <1.0), configurator (==0.2.*), data-lens (==2.0.*), data-lens-template (==2.1.*), directory (==1.1.*), filepath (==1.2.*), heist (==0.8.*), snap (==0.8.*), snap-core (==0.8.*), text (==0.11.*), xmlhtml (>=0.1.7 && <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 https://github.com/HaskellCNOrg/snaplet-i18n
Uploaded Mon Jul 2 11:02:34 UTC 2012 by HaishengWu
Distributions NixOS:0.0.5
Downloads 1219 total (16 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
All reported builds failed as of 2015-11-25 [all 4 reports]

Modules

  • Snap
    • Snaplet
      • Snap.Snaplet.I18N

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for snaplet-i18n

Readme for snaplet-i18n-0.0.2.1

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>

see test at test/snap.hs*

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.