| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Fluent.Bundle
Synopsis
- data Bundle locale = Bundle {}
- data Override
- = UseIsolating Bool
- | WithFunction Identifier ([Pattern] -> HashMap Identifier Value -> Either String Pattern)
- override :: Override -> Bundle locale -> Bundle locale
- localeCodes :: Locale locale => Bundle locale -> NonEmpty Text
- bundle :: NonEmpty locale -> [Resource] -> Bundle locale
- message :: Identifier -> Bundle locale -> Maybe Message
- term :: Identifier -> Bundle locale -> Maybe Term
- pattern :: Locale locale => Bundle locale -> HashMap Identifier Value -> Pattern -> Either String Pattern
Documentation
A collection of Fluent resources and the configuration needed to resolve and format messages for a locale.
Constructors
| Bundle | |
Fields
| |
A change to a Bundle.
Constructors
| UseIsolating Bool | Whether to use isolation marks around placeables. |
| WithFunction Identifier ([Pattern] -> HashMap Identifier Value -> Either String Pattern) | Add a function, shadowing the builtin of the same name. |
localeCodes :: Locale locale => Bundle locale -> NonEmpty Text Source #
The codes of the locales of a bundle.
message :: Identifier -> Bundle locale -> Maybe Message Source #
The first message of a Bundle with the identifier.