| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Fluent.Locale.English
Description
This module provides a small English locale.
The locale is intended for tests and experimentation, not for production use.
Supported
- Cardinal and ordinal plural rules.
- Decimal, percent, currency and unit numbers.
- Dates and times in UTC.
Limitations
- No regional differences are supported.
Every language code with language
en, such asen-USanden-GB, gives the same output. - With the currency display
symbol, only currencies incurrencieshave a symbol. Any other currency is shown by its ISO 4217 code. - The currency display
nameis not supported. It shows the ISO 4217 code likecode, soEURgivesEUR 12.50, not12.50 euros. - Only units in
unitsare supported. Any other unit fails. - The unit displays
narrowandlongare not supported. They show the same abbreviation asshort, solonggives3 s, not3 seconds. - Significant digits have no effect.
- Era and time zone name fields are left out of dates.
- Time zones other than UTC fail.
Documentation
A small English locale.
See the module documentation for the full list of limitations.
Constructors
| English |
Instances
| Locale English Source # |
|
Defined in Language.Fluent.Locale.English Methods fromCode :: Text -> Maybe English Source # toCode :: English -> Text Source # displayLanguage :: English -> English -> Maybe Text Source # localDisplayLanguage :: English -> Maybe Text Source # capitalise :: English -> Text -> Text Source # pluralCategory :: English -> Scientific -> NumberOptions -> Category Source # formatNumber :: NonEmpty English -> Scientific -> NumberOptions -> Either String Text Source # formatTime :: NonEmpty English -> UTCTime -> TimeOptions -> Either String Text Source # | |
units :: HashMap Text Text Source #
The abbreviations of units of measurement, in the singular, by their CLDR identifier.
currencyDigits :: Text -> Int Source #
The number of digits after the decimal point of an amount of a currency by its ISO 4217 code.