Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- parseLocale :: Text -> Either CiteprocError Locale
- getLocale :: Lang -> Either CiteprocError Locale
- getPrimaryDialect :: Lang -> Maybe Lang
- lookupQuotes :: Locale -> ((Text, Text), (Text, Text))
Documentation
parseLocale :: Text -> Either CiteprocError Locale Source #
Parse a CSL locale definition (XML). For information about the format, see https://docs.citationstyles.org/en/stable/translating-locale-files.html.
getLocale :: Lang -> Either CiteprocError Locale Source #
Retrieves the locale defined for the specified language. Implements the locale fallback algorithm described in the CSL 1.0.1 spec.