snaplet-i18n: snaplet-i18n

[ bsd3, library, program, web ] [ Propose Tags ]

A light weight i18n snaplet.


[Skip to Readme]

Modules

[Last Documentation]

  • Snap
    • Snaplet
      • Snap.Snaplet.I18N

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.2.1, 0.0.3, 0.0.3.1, 0.0.4, 0.0.5, 0.1.0, 0.2.0
Dependencies base (>=4 && <5), bytestring (>=0.9 && <1.0), configurator (>=0.2 && <0.3), data-lens (>=2.0 && <2.1), data-lens-template (>=2.1 && <2.2), directory (>=1.1 && <1.2), filepath (>=1.2 && <1.4), heist (>=0.8.1 && <0.9), snap (>=0.9 && <0.10), snap-core (>=0.9 && <0.10), snap-loader-dynamic (>=0.9 && <0.10), snap-loader-static (>=0.9 && <0.10), text (>=0.11 && <0.12), xmlhtml (>=0.2) [details]
License BSD-3-Clause
Copyright Haisheng Wu
Author Haisheng,Wu
Maintainer freizl@gmail.com
Category Web
Home page https://github.com/HaskellCNOrg/snaplet-i18n
Source repo head: git clone git://github.com/HaskellCNOrg/snaplet-i18n.git
Uploaded by HaishengWu at 2012-12-29T05:36:22Z
Distributions NixOS:0.2.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 6623 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-22 [all 6 reports]

Readme for snaplet-i18n-0.0.3.1

[back to package description]

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