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
#ToPluralRulesOptions Source
data ToPluralRulesOptions
Instances
ConvertOption ToPluralRulesOptions "localeMatcher" LocaleMatcher String
ConvertOption ToPluralRulesOptions "localeMatcher" String String
ConvertOption ToPluralRulesOptions "type" PluralRulesType String
ConvertOption ToPluralRulesOptions "type" String String
ConvertOption ToPluralRulesOptions "minimumIntegerDigits" Int Int
ConvertOption ToPluralRulesOptions "minimumFractionDigits" Int Int
ConvertOption ToPluralRulesOptions "maximumFractionDigits" Int Int
ConvertOption ToPluralRulesOptions "minimumSignificantDigits" Int Int
ConvertOption ToPluralRulesOptions "maximumSignificantDigits" Int Int
#new Source
new :: forall provided. ConvertOptionsWithDefaults ToPluralRulesOptions (Record PluralRulesOptions) (Record provided) (Record PluralRulesOptions) => Array Locale -> Record provided -> Effect PluralRules
#supportedLocalesOf Source
supportedLocalesOf :: forall provided. ConvertOptionsWithDefaults ToPluralRulesOptions (Record PluralRulesOptions) (Record provided) (Record PluralRulesOptions) => Array Locale -> Record provided -> Array 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 }
- Modules
- JS.
Intl - JS.
Intl. Collator - JS.
Intl. DateTimeFormat - JS.
Intl. DisplayNames - JS.
Intl. ListFormat - JS.
Intl. Locale - JS.
Intl. NumberFormat - JS.
Intl. Options. AvailableCanonical - JS.
Intl. Options. CaseFirst - JS.
Intl. Options. Collation - JS.
Intl. Options. CompactDisplay - JS.
Intl. Options. CurrencyDisplay - JS.
Intl. Options. CurrencySign - JS.
Intl. Options. DateStyle - JS.
Intl. Options. Day - JS.
Intl. Options. DayPeriod - JS.
Intl. Options. DisplayNamesType - JS.
Intl. Options. Era - JS.
Intl. Options. Fallback - JS.
Intl. Options. FormatMatcher - JS.
Intl. Options. Granularity - JS.
Intl. Options. Hour - JS.
Intl. Options. HourCycle - JS.
Intl. Options. Internal. Unsafe - JS.
Intl. Options. LanguageDisplay - JS.
Intl. Options. ListFormatType - JS.
Intl. Options. LocaleMatcher - JS.
Intl. Options. Minute - JS.
Intl. Options. Month - JS.
Intl. Options. Notation - JS.
Intl. Options. NumberFormatStyle - JS.
Intl. Options. Numeric - JS.
Intl. Options. PluralCategory - JS.
Intl. Options. PluralRulesType - JS.
Intl. Options. RelativeTimeUnit - JS.
Intl. Options. RoundingIncrement - JS.
Intl. Options. RoundingMode - JS.
Intl. Options. RoundingPriority - JS.
Intl. Options. Second - JS.
Intl. Options. Sensitivity - JS.
Intl. Options. SignDisplay - JS.
Intl. Options. Style - JS.
Intl. Options. TimeStyle - JS.
Intl. Options. TimeZoneName - JS.
Intl. Options. TrailingZeroDisplay - JS.
Intl. Options. UnitDisplay - JS.
Intl. Options. Usage - JS.
Intl. Options. UseGrouping - JS.
Intl. Options. Weekday - JS.
Intl. Options. Year - JS.
Intl. PluralRules - JS.
Intl. RelativeTimeFormat - JS.
Intl. Segmenter - JS.
LocaleSensitive. Date - JS.
LocaleSensitive. Number - JS.
LocaleSensitive. String