Module
JS.Intl.PluralRules
- Package
- purescript-js-intl
- Repository
- pete-murphy/purescript-js-intl
#PluralRules Source
data PluralRulesPlural-sensitive formatting and plural-related language rules
#ToPluralRulesOptions Source
data ToPluralRulesOptionsInstances
ConvertOption ToPluralRulesOptions "localeMatcher" LocaleMatcher StringConvertOption ToPluralRulesOptions "localeMatcher" String StringConvertOption ToPluralRulesOptions "type" PluralRulesType StringConvertOption ToPluralRulesOptions "type" String StringConvertOption ToPluralRulesOptions "minimumIntegerDigits" Int IntConvertOption ToPluralRulesOptions "minimumFractionDigits" Int IntConvertOption ToPluralRulesOptions "maximumFractionDigits" Int IntConvertOption ToPluralRulesOptions "minimumSignificantDigits" Int IntConvertOption 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 -> PluralCategoryReturns a string indicating which plural rule to use for locale-aware formatting
#selectRange Source
selectRange :: PluralRules -> Int -> Int -> PluralCategoryReceives 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