snaplet-i18n-0.2.0: snaplet-i18n

Safe HaskellNone
LanguageHaskell2010

Snap.Snaplet.I18N

Synopsis

Documentation

data I18N Source #

data type

class HasI18N b where Source #

Compose App with a I18N Snaplet.

Minimal complete definition

i18nLens

newtype I18NMessage Source #

Message content.

Constructors

I18NMessage Config 

initI18N Source #

Arguments

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

Locale, default to defaultLocale

-> SnapletInit b I18N 

Init this I18N snaplet.

getI18NMessages :: HasI18N b => Handler b b I18NMessage Source #

Get the I18NMessage

lookupI18NValue :: HasI18N b => Text -> Handler b b Text Source #

Look up a value in, usuallly Handler Monad