pandoc-3.1.13: Conversion between markup formats
CopyrightCopyright (C) 2017-2023 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Translations

Description

Functions for getting localized translations of terms.

Synopsis

Documentation

readTranslations :: Text -> Either Text Translations #

Parse YAML translations.

getTranslations :: PandocMonad m => m Translations #

Load term map.

setTranslations :: PandocMonad m => Lang -> m () #

Select the language to use with translateTerm. Note that this does not read a translation file; that is only done the first time translateTerm is used.

translateTerm :: PandocMonad m => Term -> m Text #

Get a translation from the current term map. Issue a warning if the term is not defined.