| 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 | None |
| 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 #
Instances
| FromJSON Translations # | |||||
Defined in Text.Pandoc.Translations.Types | |||||
| Monoid Translations # | |||||
Defined in Text.Pandoc.Translations.Types Methods mempty :: Translations # mappend :: Translations -> Translations -> Translations # mconcat :: [Translations] -> Translations # | |||||
| Semigroup Translations # | |||||
Defined in Text.Pandoc.Translations.Types Methods (<>) :: Translations -> Translations -> Translations # sconcat :: NonEmpty Translations -> Translations # stimes :: Integral b => b -> Translations -> Translations # | |||||
| Generic Translations # | |||||
Defined in Text.Pandoc.Translations.Types Associated Types
| |||||
| Show Translations # | |||||
Defined in Text.Pandoc.Translations.Types Methods showsPrec :: Int -> Translations -> ShowS # show :: Translations -> String # showList :: [Translations] -> ShowS # | |||||
| type Rep Translations # | |||||
Defined in Text.Pandoc.Translations.Types type Rep Translations = D1 ('MetaData "Translations" "Text.Pandoc.Translations.Types" "pandoc-3.1.13-4z6Ggw740m1ARLbD77fK9I" 'True) (C1 ('MetaCons "Translations" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Term Text)))) | |||||
lookupTerm :: Term -> Translations -> Maybe Text #
Lookup a term in a Translations.