Skip to content

HaskellCNOrg/snaplet-i18n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.