Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data I18N
- class HasI18N b where
- newtype I18NMessage = I18NMessage Config
- type Locale = String
- type MessageFile = String
- initI18N :: (HasHeist b, HasI18N b) => Maybe Locale -> SnapletInit b I18N
- getI18NMessages :: HasI18N b => Handler b b I18NMessage
- lookupI18NValue :: HasI18N b => Text -> Handler b b Text
Documentation
class HasI18N b where Source #
Compose App with a I18N Snaplet.
i18nLens :: SnapletLens b I18N Source #
type MessageFile = String Source #
Init this I18N snaplet.
getI18NMessages :: HasI18N b => Handler b b I18NMessage Source #
Get the I18NMessage