Copyright | Copyright (C) 2017-2023 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Text.Pandoc.Translations.Types
Description
Data types for localization.
Translations are stored in datatranslationslangname.trans
,
where langname can be the full BCP47 language specifier, or
just the language part. File format is:
# A comment, ignored Figure: Figura Index: Indeksi
Synopsis
- data Term
- data Translations
- lookupTerm :: Term -> Translations -> Maybe Text
Documentation
Constructors
Abstract | |
Appendix | |
Bibliography | |
Cc | |
Chapter | |
Contents | |
Encl | |
Figure | |
Glossary | |
Index | |
Listing | |
ListOfFigures | |
ListOfTables | |
Page | |
Part | |
Preface | |
Proof | |
References | |
See | |
SeeAlso | |
Table | |
To |
Instances
data Translations Source #
Instances
FromJSON Translations Source # | |
Defined in Text.Pandoc.Translations.Types Methods parseJSON :: Value -> Parser Translations Source # parseJSONList :: Value -> Parser [Translations] Source # | |
Monoid Translations Source # | |
Defined in Text.Pandoc.Translations.Types Methods mempty :: Translations Source # mappend :: Translations -> Translations -> Translations Source # mconcat :: [Translations] -> Translations Source # | |
Semigroup Translations Source # | |
Defined in Text.Pandoc.Translations.Types Methods (<>) :: Translations -> Translations -> Translations Source # sconcat :: NonEmpty Translations -> Translations Source # stimes :: Integral b => b -> Translations -> Translations Source # | |
Generic Translations Source # | |
Defined in Text.Pandoc.Translations.Types Methods from :: Translations -> Rep Translations x Source # to :: Rep Translations x -> Translations Source # | |
Show Translations Source # | |
Defined in Text.Pandoc.Translations.Types | |
type Rep Translations Source # | |
Defined in Text.Pandoc.Translations.Types |
lookupTerm :: Term -> Translations -> Maybe Text Source #
Lookup a term in a Translations
.