snaplet-i18n-0.0.3: snaplet-i18n

Safe HaskellSafe-Infered

Snap.Snaplet.I18N

Synopsis

Documentation

data I18NSnaplet Source

data type

class HasI18N b whereSource

Compose App with a I18N Snaplet.

data I18NMessage Source

A simple mapping to hold i18n messages

Constructors

I18NMessage Config 

initI18NSnapletSource

Arguments

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

Locale, default to defaultLocale

-> SnapletInit b I18NSnaplet 

Init this I18NSnaplet 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