Module
JS.Intl.ListFormat
- Package
- purescript-js-intl
- Repository
- pete-murphy/purescript-js-intl
#ListFormat Source
data ListFormatLanguage-sensitive list formatting
#ListFormatOptions Source
type ListFormatOptions :: Row Typetype ListFormatOptions = (localeMatcher :: String, style :: String, type :: String)
#ToListFormatOptions Source
data ToListFormatOptionsInstances
ConvertOption ToListFormatOptions "localeMatcher" LocaleMatcher StringConvertOption ToListFormatOptions "localeMatcher" String StringConvertOption ToListFormatOptions "type" ListFormatType StringConvertOption ToListFormatOptions "type" String StringConvertOption ToListFormatOptions "style" Style StringConvertOption ToListFormatOptions "style" String String
#new Source
new :: forall provided. ConvertOptionsWithDefaults ToListFormatOptions (Record ListFormatOptions) (Record provided) (Record ListFormatOptions) => Array Locale -> Record provided -> Effect ListFormat#supportedLocalesOf Source
supportedLocalesOf :: forall provided. ConvertOptionsWithDefaults ToListFormatOptions (Record ListFormatOptions) (Record provided) (Record ListFormatOptions) => Array Locale -> Record provided -> Array String#format Source
format :: ListFormat -> Array String -> StringReturns a string with a language-specific representation of the list
#formatToParts Source
formatToParts :: ListFormat -> Array String -> Array { type :: String, value :: String }Returns an array of objects representing the different components that can be used to format a list of values in a locale-aware fashion
- 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