wai-accept-language-0.1.0.1: Rewrite based on Accept-Language header

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Multilingual

Synopsis

Documentation

contentLanguage :: [ByteString] -> ByteString -> Maybe ByteString Source #

determine language based on language list and Accept-Language header

rewriteByAcceptLanguage :: [([Text], [ByteString])] -> Middleware Source #

rewrite based on content:language list and Accept-Language header