Module

JS.Intl.PluralRules

Package
purescript-js-intl
Repository
pete-murphy/purescript-js-intl

#PluralRules Source

data PluralRules

Plural-sensitive formatting and plural-related language rules

#PluralRulesOptions Source

type PluralRulesOptions :: Row Typetype PluralRulesOptions = (localeMatcher :: String, maximumFractionDigits :: Int, maximumSignificantDigits :: Int, minimumFractionDigits :: Int, minimumIntegerDigits :: Int, minimumSignificantDigits :: Int, type :: String)

#select Source

select :: PluralRules -> Int -> PluralCategory

Returns a string indicating which plural rule to use for locale-aware formatting

#selectRange Source

selectRange :: PluralRules -> Int -> Int -> PluralCategory

Receives two values and returns a PluralRule indicating which plural rule to use for locale-aware formatting

#resolvedOptions Source

resolvedOptions :: PluralRules -> Effect { locale :: String, pluralCategories :: Array PluralCategory, type :: String }