snaplet-i18n-0.0.5: snaplet-i18n

Safe HaskellNone

Snap.Snaplet.I18N

Synopsis

Documentation

data I18N Source

data type

class HasI18N b whereSource

Compose App with a I18N Snaplet.

newtype I18NMessage Source

Message content.

Constructors

I18NMessage Config 

initI18NSource

Arguments

:: (HasHeist b, HasI18N b) 
=> Maybe Locale

Locale, default to defaultLocale

-> SnapletInit b I18N 

Init this I18N snaplet.

getI18NMessages :: HasI18N b => Handler b b I18NMessageSource

Get the I18NMessage

lookupI18NValue :: HasI18N b => Text -> Handler b b TextSource

Look up a value in, usuallly Handler Monad