hakyll-contrib-i18n-0.1.1.0: A Hakyll library for internationalization.
Safe HaskellNone
LanguageHaskell2010

Hakyll.Contrib.I18n

Synopsis

Documentation

categoryField :: String -> Tags -> Context a Source #

Hakyll's categoryField but with translation applied to the tag name.

categoryField' :: String -> Tags -> Context a Source #

Hakyll's categoryField but with translation applied to the tag name. | It also remove any trailing `/index.html` in the route.

dateField :: String -> Context a Source #

Hakyll's dateField but uses a format base on the item's language.

tagsField :: String -> Tags -> Context a Source #

Hakyll's tagsField but with translation applied to the tag name.

tagsField' :: String -> Tags -> Context a Source #

Hakyll's tagsField but with translation applied to the tag name. | It also remove any trailing `/index.html` in the route.

feedConfiguration :: Translation -> FeedConfiguration Source #

FeedConfiguration but with translated fields.

languageField :: String -> Context a Source #

Field containing the Item's language.

translate :: Translation -> String -> String Source #

Search for a word's translation in a Translation. | If there is none, return the word unchanged.

translationCompiler :: Compiler (Item Translation) Source #

Compiles a Translation from a yaml file.

translationContext :: Context a Source #

Helper Context exposing all the modules Fields in the same place.

translationField :: String -> Context a Source #

A function one can use to translate Strings and Fields in the Templates base on the Item's language.